/* =============================================================
   MANIPULACJE.COM.PL — DESIGN SYSTEM
   Metodologia: MOBILE FIRST
   Breakpointy: sm=480  md=768  lg=1024  xl=1180
   Sekcje:
     0. Tokens & Reset
     1. Typography
     2. Utilities & Accessibility
     3. Layout
     4. Header & Navigation
     5. Buttons
     6. Hero
     7. Signals / Problem
     8. Quiz & Lead Capture
     9. Cards (services, blog)
    10. Testimonials
    11. About (EEAT teaser)
    12. Social
    13. Dark CTA
    14. Footer
    15. Sticky CTA
    16. Reduced motion
   ============================================================= */

/* ─── 0. TOKENS & RESET ──────────────────────────────────────── */
:root {
  /* Kolory */
  --paper:      #FBFAF6;
  --mist:       #EAF1ED;
  --ink:        #1F2A33;
  --sage:       #6E9C8B;
  --sage-text:  #4A7363;
  --amber:      #E2864F;
  --sand:       #D8CFC0;
  --body-muted: #3B4A52;

  /* Typografia */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w:   1180px;
  --radius:  14px;
  --radius-s: 8px;

  /* Przestrzeń (mobile base) */
  --section-py: 3rem;
  --gutter:     1rem;
}

/* Większa przestrzeń na desktopie */
@media (min-width: 768px) {
  :root {
    --section-py: 5rem;
    --gutter: 1.5rem;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;           /* blokuje poziomy scroll na mobile */
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
section[id] { scroll-margin-top: 80px; }

/* ─── 1. TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0 0 .9rem;
  font-weight: 600;
}

h1 { font-size: clamp(1.9rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.3rem); }

/* ─── 2. UTILITIES & ACCESSIBILITY ─────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; z-index: 200;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; top: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  visibility: hidden;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--sage-text);
  margin-bottom: .75rem;
}

.lead-text {
  font-size: 1rem;
  color: var(--body-muted);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}
.lead-text-light {
  font-size: 1rem;
  color: var(--sand);
  max-width: 52ch;
  margin: 0 auto 1.75rem;
}

.text-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 600; text-decoration: none; color: var(--sage-text);
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.text-link:hover { border-bottom-color: var(--sage-text); }

.center-text { text-align: center; }
.center-flex { justify-content: center; }

/* Sekcja breakline mobile (br widoczny tylko na mobile) */
.br-mobile { display: inline; }
@media (min-width: 768px) { .br-mobile { display: none; } }

/* ─── 3. LAYOUT CONTAINERS ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-py) var(--gutter);
}
.container-narrow { max-width: 740px; }

/* Sekcje tła */
.section-mist  { background: var(--mist); }
.section-paper { background: var(--paper); }
.section-dark  { background: var(--ink); color: var(--paper); }
.section-dark h2 { color: var(--paper); }

/* ─── 4. HEADER & NAVIGATION ────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,246,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .85rem var(--gutter);
  min-height: 64px;
}

/* Brand */
.brand {
  display: flex; align-items: center; gap: .45rem;
  text-decoration: none;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.15rem; color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  background: var(--ink); color: var(--amber);
  border-radius: var(--radius-s);
  width: 1.9rem; height: 1.9rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.brand-dot  { color: var(--amber); }
.brand-text { line-height: 1; }
.brand-sub  { font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--sage-text); }

/* ── Hamburger button (zawsze flex, ukrywany na desktop) ─── */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none; border: 0;
  padding: .5rem; cursor: pointer;
  flex-shrink: 0; z-index: 110;
  border-radius: var(--radius-s);
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: var(--mist); }
.bar {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
  pointer-events: none;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Overlay (zamknięcie kliknięciem tła) ─── */
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(31,42,51,.4);
  z-index: 98;
}

/* ── Primary Nav — mobile FIRST (panel z prawej) ─── */
.primary-nav {
  /* Mobile: schowany panel */
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: auto;
  width: min(280px, 78vw);
  z-index: 99;
  background: var(--paper);
  border-left: 1px solid var(--sand);
  box-shadow: -8px 0 32px rgba(31,42,51,.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  gap: 0;
}
.primary-nav.is-open {
  transform: translateX(0);
}

/* Lista w mobile */
.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  list-style: none;
  margin: 0; padding: 0;
  width: 100%;
}
.primary-nav li { width: 100%; }

/* Linki — mobile */
.primary-nav a {
  display: block;
  width: 100%;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  padding: .75rem .9rem;
  border-radius: var(--radius-s);
  transition: background .18s, color .18s;
  line-height: 1.3;
}
.primary-nav a:hover {
  background: var(--mist);
  color: var(--ink);
}
.primary-nav a.is-active,
.primary-nav a[aria-current="page"] {
  background: var(--mist);
  color: var(--amber);
  font-weight: 700;
  border-left: 3px solid var(--amber);
  padding-left: calc(.9rem - 3px);
}

/* CTA button w nav */
.nav-cta {
  margin-top: 1.5rem;
  align-self: stretch;
  text-align: center;
}

/* Blokada scrollowania body gdy menu otwarte */
body.nav-open { overflow: hidden; }

/* ── Desktop nav (≥ 881px) ─── */
@media (min-width: 881px) {
  .nav-toggle { display: none; }
  .nav-overlay { display: none !important; }

  .primary-nav {
    /* Reset — widoczny, poziomy */
    position: static;
    transform: none !important;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: .5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
  .primary-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .15rem;
    width: auto;
  }
  .primary-nav li { width: auto; }
  .primary-nav a {
    display: inline-flex;
    align-items: center;
    width: auto;
    font-size: .9rem;
    padding: .4rem .75rem;
    border-radius: 999px;
    border-left: none !important;
    padding-left: .75rem !important;
  }
  .primary-nav a:hover {
    background: var(--mist);
  }
  .primary-nav a.is-active,
  .primary-nav a[aria-current="page"] {
    background: rgba(226,134,79,.12);
    color: var(--amber);
    border-left: none !important;
  }
  .nav-cta {
    margin-top: 0;
    align-self: auto;
    margin-left: .5rem;
  }
}

/* ─── 5. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .8rem 1.5rem;
  border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent;
  font-family: var(--font-body); font-size: .92rem;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--amber); color: var(--ink);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(226,134,79,.38);
}
.btn-amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(226,134,79,.38); }

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

.btn-outline-light {
  border-color: var(--sand); background: transparent; color: var(--paper);
}
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }

.btn-full { width: 100%; }

/* ─── 6. HERO ───────────────────────────────────────────────── */
/* Mobile: jeden kolumna, duże odstępy */
.hero {
  background: var(--paper);
  padding: 3rem var(--gutter) 3.5rem;
}
.hero .container { padding-top: 0; padding-bottom: 0; }

.hero h1 { margin-bottom: 1rem; }
.hero-lead {
  font-size: 1rem; color: var(--body-muted);
  margin-bottom: 1.75rem; max-width: 52ch;
}
.hero-ctas {
  display: flex; flex-direction: column;
  gap: .75rem; margin-bottom: 1.75rem;
}
.hero-ctas .btn { width: 100%; }   /* pełna szerokość na mobile */

.social-proof-mini {
  list-style: none; display: flex;
  flex-direction: column; gap: .5rem;
  font-size: .82rem; font-weight: 600; color: var(--sage-text);
}
.social-proof-mini li { display: flex; align-items: center; gap: .4rem; }

/* ≥ 600px: CTA side by side */
@media (min-width: 600px) {
  .hero-ctas { flex-direction: row; }
  .hero-ctas .btn { width: auto; }
  .social-proof-mini { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}

/* ─── 7. SIGNALS / PROBLEM ──────────────────────────────────── */
.signals-grid {
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;   /* mobile: 1 kolumna */
  margin: 1.75rem 0 1.5rem;
}
.signals-grid li {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.signals-grid strong {
  font-family: var(--font-display); font-size: 1rem;
}
.signals-grid span { color: var(--body-muted); font-size: .9rem; }

@media (min-width: 600px) {
  .signals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .signals-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── 8. QUIZ & LEAD CAPTURE ────────────────────────────────── */
.quiz-card {
  background: var(--mist);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.quiz-question { margin: 0 0 1.5rem; }
.quiz-question legend {
  font-weight: 600; font-size: .95rem;
  margin-bottom: .65rem; padding: 0;
}
.quiz-question label {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .35rem; border-radius: var(--radius-s);
  cursor: pointer; font-size: .93rem;
}
.quiz-question label:hover { background: rgba(110,156,139,.12); }
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--amber);
  width: 18px; height: 18px; flex-shrink: 0;
}

.quiz-result {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-s);
  background: var(--paper);
  border: 1px solid var(--sage);
  font-weight: 600; font-size: .95rem;
}

.lead-capture {
  margin-top: 1.75rem;
  background: var(--paper);
  border: 2px dashed var(--sage);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.lead-capture h3 { margin-bottom: .5rem; }

.field-full {
  width: 100%; display: block;
  padding: .8rem 1rem; margin: 1rem 0 .75rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-s);
  font-family: inherit; font-size: .95rem;
  background: #fff; color: var(--ink);
}
.field-full:focus { outline: 3px solid var(--amber); outline-offset: 1px; }

.consent {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .8rem; color: var(--body-muted);
  margin-bottom: 1rem; cursor: pointer;
}
.consent a { text-decoration: underline; }

/* ─── 9. CARDS ──────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;   /* mobile: 1 kolumna */
  margin: 1.75rem 0 1.25rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(31,42,51,.07);
}
.section-mist .card { background: var(--paper); }
.section-paper .card { background: #fff; border-color: #e8e2d8; }
.card-icon { font-size: 1.6rem; margin-bottom: .25rem; }

@media (min-width: 600px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* ─── 10. TESTIMONIALS ──────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;   /* mobile: 1 kolumna */
  margin: 1.75rem 0;
}
.testimonial-card { background: #fff; }
.stars {
  color: var(--amber); font-size: 1rem;
  letter-spacing: .05em; margin: 0 0 .4rem;
}
blockquote { margin: 0 0 .65rem; }
blockquote p { font-size: .93rem; color: var(--body-muted); margin: 0; font-style: italic; }
.testimonial-author {
  font-size: .8rem; color: var(--sage-text);
  font-weight: 700; margin: 0;
}

@media (min-width: 600px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  /* 3 + 2 (ostatnie 2 wyśrodkowane) — CSS Grid auto-fill */
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── 11. ABOUT (EEAT TEASER) ───────────────────────────────── */
.about-grid {
  display: flex; flex-direction: column;
  align-items: center; gap: 2rem;
  text-align: center;
}
.about-visual { flex-shrink: 0; }
.about-visual svg, .about-visual img {
  border-radius: 50%;
  width: 160px; height: 160px;
  object-fit: cover;
}
.about-copy { max-width: 60ch; }
.about-copy .btn { margin-top: .5rem; }

@media (min-width: 768px) {
  .about-grid {
    flex-direction: row; text-align: left; gap: 3rem;
    align-items: center;
  }
  .about-visual svg, .about-visual img {
    width: 200px; height: 200px;
  }
}

/* ─── 12. SOCIAL ICONS ──────────────────────────────────────── */
.social-icons {
  display: flex; flex-wrap: wrap; gap: .65rem;
  justify-content: center; margin-top: 1.25rem;
}
.social-icons a {
  text-decoration: none; font-weight: 600;
  padding: .55rem 1.1rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--sand);
  color: var(--ink); font-size: .88rem;
  transition: background .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.social-icons a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ─── 13. DARK CTA ──────────────────────────────────────────── */
.section-dark .container {
  text-align: center;
}
.section-dark .hero-ctas {
  flex-direction: column;
}
.section-dark .hero-ctas .btn { width: 100%; }

@media (min-width: 600px) {
  .section-dark .hero-ctas { flex-direction: row; }
  .section-dark .hero-ctas .btn { width: auto; }
}

/* ─── 14. FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: var(--mist);
  border-top: 1px solid var(--sand);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;   /* mobile: 1 kolumna */
  padding-bottom: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600;
  margin: 0 0 .4rem;
}
.footer-tag {
  font-size: .88rem; color: var(--body-muted);
  max-width: 32ch; margin: 0;
}
.footer-heading {
  font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--sage-text); margin: 0 0 .85rem;
}
.footer-list {
  list-style: none; display: flex;
  flex-direction: column; gap: .55rem;
  font-size: .9rem;
}
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-payments {
  font-size: .8rem; color: var(--sage-text);
  margin-top: .9rem;
}

@media (min-width: 480px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-bottom {
  border-top: 1px solid var(--sand);
  padding: 1.25rem var(--gutter);
  display: flex; flex-direction: column;
  align-items: center; gap: .75rem;
  font-size: .78rem; color: #64748b; text-align: center;
}
.footer-social a {
  padding: .4rem .8rem; font-size: .78rem;
}

/* ─── 15. STICKY CTA (mobile only) ─────────────────────────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--paper);
  border-top: 1px solid var(--sand);
  padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center; justify-content: space-between;
  gap: .75rem;
  box-shadow: 0 -6px 18px rgba(31,42,51,.07);
}
.sticky-cta-call {
  font-weight: 700; text-decoration: none;
  color: var(--ink); font-size: .9rem; flex-shrink: 0;
}
.sticky-cta-btn {
  padding: .6rem 1rem; font-size: .85rem; flex-shrink: 0;
}

/* Na desktopie ukryj sticky CTA */
@media (min-width: 769px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ─── 16. REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ─── 17. BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--mist);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}
.breadcrumb-bar .container {
  /* Nadpisuje padding inline z HTML */
  padding-top: .65rem !important;
  padding-bottom: .65rem !important;
}
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0; padding: 0;
  font-size: .82rem;
  font-weight: 500;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--body-muted);
}
/* Separator między elementami */
.breadcrumb li + li::before {
  content: "/";
  margin: 0 .5rem;
  color: var(--sage);
  font-weight: 400;
  opacity: .7;
}
.breadcrumb a {
  text-decoration: none;
  color: var(--sage-text);
  font-weight: 600;
  padding: .15rem .3rem;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.breadcrumb a:hover {
  background: rgba(110,156,139,.12);
  color: var(--ink);
  text-decoration: none;
}
/* Aktywna (bieżąca) strona */
.breadcrumb li:last-child,
.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}


