/* ============================================================
   ALE WARSZTAT — paleta „warsztat i trociny”
   ============================================================
   --orange   #F08033  pomarańcz z logo (akcent, przyciski)
   --rust     #C2521E  ciemniejsza ceglasta wersja (hover, cyfry)
   --char     #23272C  grafit z logo (tła, nagłówki)
   --ink      #23272C  kolor tekstu
   --muted    #4F4A44  ciepła szarość dla akapitów (mocny kontrast)
   --cream    #FBF3E7  ciepłe kremowe tło (trociny)
   --sand     #F1E4D0  drugi odcień tła
   --wood     #8C5A2B  orzech, do detali
   --moss     #4A7C59  zieleń — jedyny „chłodny” akcent
   ============================================================ */
:root{
  --orange:#F08033;
  --rust:#C2521E;
  --char:#23272C;
  --ink:#23272C;
  --cream:#FBF3E7;
  --sand:#F1E4D0;
  --wood:#8C5A2B;
  --moss:#4A7C59;
  --muted:#4F4A44;
  --line:#E3D6C2;

  --f-head:"Bricolage Grotesque",system-ui,sans-serif;
  --f-body:"Outfit",system-ui,sans-serif;
  --f-hand:"Caveat",cursive;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--f-body);
  color:var(--ink);
  background:var(--cream);
  font-size:17px;
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit}
.wrap{max-width:1100px;margin:0 auto;padding:0 22px}
.center{text-align:center}

/* ---------- typografia ---------- */
h1,h2,h3{font-family:var(--f-head);font-weight:800;line-height:1.05;letter-spacing:-.02em}
h1{font-size:clamp(38px,7vw,72px);text-transform:uppercase}
h1 em{font-style:normal;color:var(--orange);display:inline-block;transform:rotate(-1.4deg)}
h2{font-size:clamp(28px,4.4vw,44px);text-transform:uppercase}
h3{font-size:20px}

.scribble{
  font-family:var(--f-hand);font-size:clamp(20px,2.6vw,28px);
  color:var(--orange);transform:rotate(-2deg);margin:10px 0 6px;
}
.scribble.light{color:var(--orange)}
.scribble.center{text-align:center;margin-top:34px}

.lead{font-size:20px;color:#DCE0E4;max-width:600px;margin:16px 0 30px}
.sub{color:var(--muted);max-width:700px;margin:0 auto 40px;text-align:center;font-size:18px}

/* nagłówek z odręcznym podkreśleniem */
.h-mark{text-align:center;margin-bottom:12px;position:relative;display:block}
.h-mark::after{
  content:"";display:block;width:190px;height:20px;margin:10px auto 0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'%3E%3Cpath d='M3,12.4 C34,4.6 79,2.1 127,4.5 C158,6.0 182,8.5 197,11.2 C186,16.4 155,14.7 121,12.3 C81,9.5 37,10.1 3,12.4 Z' fill='%23F08033'/%3E%3C/svg%3E") no-repeat center/contain;
  transform:rotate(-1.2deg);
}
.h-mark.light{color:#fff}

/* ---------- przyciski ---------- */
.btn{
  display:inline-block;padding:15px 30px;border-radius:14px 20px 16px 22px;
  text-decoration:none;font-weight:600;font-size:16px;font-family:var(--f-body);
  transition:transform .15s ease, background .15s, box-shadow .15s;
}
.btn-sm{padding:10px 18px;font-size:14px;border-radius:12px 16px 12px 16px}
.btn-main{background:var(--orange);color:#fff;box-shadow:0 5px 0 var(--rust)}
.btn-main:hover{transform:translateY(-2px);box-shadow:0 7px 0 var(--rust)}
.btn-ghost{border:2px solid rgba(255,255,255,.4);color:#fff}
.btn-ghost:hover{border-color:var(--orange);color:var(--orange);transform:translateY(-2px)}
.cta{display:flex;gap:14px;flex-wrap:wrap}
.contact .cta{justify-content:center}

/* ---------- HERO ---------- */
.hero{
  position:relative;background:var(--char);color:#fff;
  padding-bottom:120px;overflow:hidden;
}
.blob{position:absolute;border-radius:50% 40% 60% 45%/45% 55% 40% 60%;opacity:.16;pointer-events:none}
.blob-a{width:520px;height:520px;background:var(--orange);top:-180px;right:-140px}
.blob-b{width:300px;height:300px;background:var(--wood);bottom:40px;left:-120px;opacity:.25}

.nav{display:flex;align-items:center;justify-content:space-between;padding-top:22px;padding-bottom:10px;position:relative;z-index:2}
.nav-logo{width:230px}

.hero-inner{
  position:relative;z-index:2;padding-top:40px;
  display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;
}
.hero-text{min-width:0}

/* zdjecie produktu — biale tlo, wiec robimy z niego "polaroid" pasujacy do galerii */
.hero-art{position:relative;display:grid;place-items:center;min-width:0;padding:14px}
.hero-art img{
  width:100%;max-width:470px;height:auto;position:relative;z-index:2;
  display:block;
  background:transparent;
  border:3px solid var(--char);
  border-radius:18px 8px 18px 8px;
  box-shadow:10px 12px 0 rgba(240,128,51,.9), 0 26px 50px rgba(0,0,0,.55);
  transform:rotate(-3deg);
}
/* przekrzywiona plansza wystajaca zza zdjecia */
.art-glow{
  position:absolute;z-index:1;
  width:82%;max-width:440px;aspect-ratio:1/1;
  border-radius:22px 10px 22px 10px;
  background:linear-gradient(150deg,rgba(240,128,51,.22),rgba(140,90,43,.18));
  border:2px dashed rgba(240,128,51,.45);
  transform:rotate(5deg);
}

.stamp{
  position:absolute;z-index:3;right:2%;bottom:6%;
  background:var(--orange);color:#fff;text-align:center;line-height:1.15;
  font-family:var(--f-head);font-size:15px;text-transform:uppercase;
  width:104px;height:104px;display:grid;place-content:center;
  border-radius:50% 45% 52% 48%/48% 52% 45% 55%;
  transform:rotate(-9deg);box-shadow:0 8px 20px rgba(0,0,0,.35);
}
.stamp b{font-size:26px;display:block}

/* poszarpana krawędź sekcji */
.tear{position:absolute;left:0;right:0;height:34px;background:var(--cream)}
.tear-bottom{bottom:-1px;clip-path:polygon(0 100%,0 42%,4% 60%,9% 34%,15% 58%,21% 30%,27% 56%,34% 32%,41% 60%,48% 34%,55% 58%,62% 30%,69% 56%,76% 34%,83% 60%,90% 36%,96% 58%,100% 40%,100% 100%)}
.tear-top{top:-1px;clip-path:polygon(0 0,100% 0,100% 40%,96% 58%,90% 36%,83% 60%,76% 34%,69% 56%,62% 30%,55% 58%,48% 34%,41% 60%,34% 32%,27% 56%,21% 30%,15% 58%,9% 34%,4% 60%,0 42%)}
/* kolor zebow = kolor sekcji SASIEDNIEJ, nie tej ktora je nosi */
.tear-sand{background:var(--sand)}
/* drugi rysunek zebow - zeby powtorzenia nie byly identycznym stemplem */
.tear-b.tear-bottom{clip-path:polygon(0 100%,0 55%,5% 32%,11% 58%,18% 36%,24% 60%,31% 34%,38% 56%,45% 30%,52% 58%,59% 36%,66% 60%,73% 32%,80% 56%,87% 34%,93% 58%,100% 36%,100% 100%)}
.tear-b.tear-top{clip-path:polygon(0 0,100% 0,100% 36%,93% 58%,87% 34%,80% 56%,73% 32%,66% 60%,59% 36%,52% 58%,45% 30%,38% 56%,31% 34%,24% 60%,18% 36%,11% 58%,5% 32%,0 55%)}
/* trzeci rysunek + nizsze zeby: granica cream/sand ma maly kontrast,
   pelne 34px czytaloby sie jak drganie krawedzi, nie jak rozdarcie */
.tear-c{height:24px}
.tear-c.tear-top{clip-path:polygon(0 0,100% 0,100% 52%,94% 30%,88% 56%,81% 34%,74% 58%,67% 32%,60% 56%,53% 30%,46% 58%,39% 34%,32% 56%,25% 32%,19% 58%,12% 36%,6% 56%,0 34%)}

/* ---------- sekcje ---------- */
.section{padding:76px 0;position:relative}
.section.alt{background:var(--sand)}
.band{background:var(--char);color:#fff;padding:104px 0;overflow:hidden}
.band .sub{color:#D3D7DB}

/* ---------- karty ---------- */
/* 4 kafle: dozwolone TYLKO 1 / 2 / 4 w rzedzie - nigdy 3,
   bo 3+1 zostawia sierote w drugim rzedzie. Dlatego jawne progi,
   a nie auto-fit (ktory sam wybiera i wchodzi w 3). */
.grid{display:grid;grid-template-columns:1fr;gap:22px}
@media (min-width:560px){ .grid{grid-template-columns:repeat(2,1fr)} }
@media (min-width:1000px){ .grid{grid-template-columns:repeat(4,1fr)} }
.grid-2{grid-template-columns:1fr;gap:26px}
@media (min-width:800px){ .grid-2{grid-template-columns:repeat(2,1fr)} }

.tilt-l{transform:rotate(-.9deg)}
.tilt-r{transform:rotate(.9deg)}
.tilt-l:hover,.tilt-r:hover{transform:rotate(0deg) translateY(-4px)}

.card{
  background:#fff;border:2px solid var(--char);
  border-radius:22px 8px 22px 8px;
  padding:26px;transition:transform .2s ease,box-shadow .2s;
  box-shadow:5px 5px 0 rgba(35,39,44,.9);
}
.card:hover{box-shadow:7px 8px 0 var(--orange)}
.ico{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;background:var(--orange);color:#fff;
  border-radius:50% 45% 55% 48%/48% 55% 45% 52%;
  font-size:20px;margin-bottom:14px;
}
.card h3{margin-bottom:8px;color:var(--char)}
.card p{color:var(--muted);font-size:16.5px}

/* ---------- kroki ---------- */
.steps{list-style:none;display:grid;grid-template-columns:1fr;gap:26px;margin-top:44px}
@media (min-width:560px){ .steps{grid-template-columns:repeat(2,1fr)} }
@media (min-width:1000px){ .steps{grid-template-columns:repeat(4,1fr)} }
.steps li{position:relative;padding-top:8px}
.steps .num{
  font-family:var(--f-head);font-size:44px;font-weight:800;
  color:var(--orange);display:block;line-height:1;margin-bottom:8px;
  transform:rotate(-3deg);
}
.steps h3{margin-bottom:6px}
.steps p{color:#D3D7DB;font-size:16.5px}

/* ---------- galeria ---------- */
/* jak .grid - dozwolone 1 / 2 / 4, nigdy 3 (8 zdjec = 8 / 4x2 / 2x4) */
.gallery{display:grid;grid-template-columns:1fr;gap:20px}
@media (min-width:560px){ .gallery{grid-template-columns:repeat(2,1fr)} }
@media (min-width:1000px){ .gallery{grid-template-columns:repeat(4,1fr)} }
.gallery figure{
  background:#fff;padding:10px 10px 14px;
  border:2px solid var(--char);border-radius:14px 6px 14px 6px;
  box-shadow:4px 5px 0 rgba(35,39,44,.85);
  transition:transform .2s ease,box-shadow .2s;
}
.gallery figure:hover{box-shadow:6px 7px 0 var(--orange)}
.gallery img{width:100%;aspect-ratio:1/1;object-fit:cover;background:var(--sand);border-radius:10px 4px 10px 4px}

/* ---------- marki ---------- */
.brand{
  display:block;background:#fff;text-decoration:none;
  border:2px solid var(--char);border-radius:26px 10px 26px 10px;
  padding:30px;transition:transform .2s ease,box-shadow .2s;
  box-shadow:6px 6px 0 rgba(35,39,44,.9);
}
.brand:hover{box-shadow:8px 9px 0 var(--orange)}
/* stala wysokosc, szerokosc dowolna - logo moze byc szerokie lub waskie */
.brand-logo{height:64px;width:auto;max-width:100%;margin-bottom:16px;object-fit:contain;object-position:left center}
.brand h3{font-size:24px;margin-bottom:10px;color:var(--char)}
.brand p{color:var(--muted);font-size:16.5px;margin-bottom:16px}
.link{color:var(--rust);font-weight:600;font-size:16px}

/* ---------- kontakt ---------- */
.contact{background:var(--char);color:#fff;text-align:center;padding-top:96px}
.contact h2{margin-bottom:12px}
.contact .sub{color:#D3D7DB}

.socials{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:34px}
.socials a{
  width:52px;height:52px;display:grid;place-items:center;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);
  border-radius:50% 44% 56% 46%/46% 56% 44% 54%;
  color:#fff;transition:.18s;
}
.socials a:hover{background:var(--orange);border-color:var(--orange);transform:translateY(-3px) rotate(-4deg)}
.socials svg{width:25px;height:25px}

/* ---------- stopka ---------- */
footer{background:#1A1D21;color:#A9B0B7;text-align:center;padding:34px 0;font-size:14px}
.foot-logo{width:150px;margin:0 auto 14px;opacity:.9}
.foot-links{margin-top:6px}
footer a{color:var(--orange);text-decoration:none}
footer a:hover{text-decoration:underline}

/* ---------- mobile ---------- */
@media (max-width:640px){
  .hero{padding-bottom:90px}
  .hero-inner{grid-template-columns:1fr;gap:24px}
  .hero-art{order:2;margin-top:6px}
  .hero-art img{max-width:320px}
  .hero-art{padding:8px}
  .art-glow{width:92%;max-width:300px}
  .hero-art img{box-shadow:7px 8px 0 rgba(240,128,51,.9),0 16px 30px rgba(0,0,0,.5)}
  .stamp{width:84px;height:84px;font-size:13px;right:6%}
  .stamp b{font-size:21px}
  .nav-logo{width:160px}
  .blob-a{width:340px;height:340px;top:-120px;right:-100px}
  .card,.brand,.gallery figure{box-shadow:4px 4px 0 rgba(35,39,44,.9)}
  .tilt-l,.tilt-r{transform:none}
  .cta{flex-direction:column;align-items:stretch}
  .btn{text-align:center}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important}
  .tilt-l,.tilt-r{transform:none}
}
