@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

:root{
  --cream:#fff6c8;
  --cream-2:#fff0a8;
  --ink:#3a1fa3;
  --ink-soft:#5a43b8;
  --script:"Great Vibes","Brush Script MT",cursive;
  --mono:"Cutive Mono","Courier New",monospace;
}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth;background:var(--cream)}
body{
  background:var(--cream);color:var(--ink);
  font-family:var(--mono);font-size:1rem;line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:2px}
.sprite{position:absolute;width:0;height:0}
.script{font-family:var(--script);font-weight:400;line-height:.9}

/* NAGŁÓWEK */
.top{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.2rem clamp(1rem,4vw,3rem)}
.brand{font-family:var(--script);font-size:1.8rem;text-decoration:none}
.top nav{display:flex;gap:1.5rem;font-size:.9rem}
.top nav a{text-decoration:none;border-bottom:1px solid transparent}
.top nav a:hover{border-color:var(--ink)}

/* HERO */
.hero{
  position:relative;min-height:calc(100vh - 5rem);
  display:grid;grid-template-columns:1fr minmax(240px,420px) 1fr;
  grid-template-areas:"title title title" "left still right" "sl still sr";
  align-items:center;justify-items:center;
  padding:0 clamp(1rem,4vw,3rem) 3rem;
}
.hero h1{
  grid-area:title;font-size:clamp(4rem,12vw,9rem);
  text-align:center;padding-top:1rem;
  animation:rise 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.side{text-align:center;font-size:.95rem;letter-spacing:.04em;text-transform:uppercase;line-height:1.5}
.side.left{grid-area:left;align-self:end}
.side.right{grid-area:right;align-self:end}
.swirl{width:110px;height:14px;color:var(--ink)}
.swirl.sl{grid-area:sl;align-self:start}
.swirl.sr{grid-area:sr;align-self:start}
.swirl.mid{display:block;margin:.5rem auto 2rem}

.still{grid-area:still;grid-row:2 / span 2;display:flex;align-items:flex-end;justify-content:center;gap:clamp(.5rem,2vw,1.5rem)}
.still svg{color:var(--ink);overflow:visible}
.still .g1{width:48px;height:120px} 
.still .vs{width:143px;height:170px}
.still .cd{width:63px;height:150px}
.still svg{animation:rise 1.2s .5s cubic-bezier(.2,.7,.2,1) both}
.still .vs{animation-delay:.7s}
.still .cd{animation-delay:.9s}

@keyframes rise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}

/* SEKCJE */
.section{padding:5rem clamp(1rem,4vw,3rem);text-align:center}
.section h2{font-size:clamp(2.8rem,7vw,4.6rem)}
.narrow{max-width:640px;margin:0 auto}
.narrow p{font-size:1.05rem}

/* PRODUKTY */
.grid{
  max-width:1100px;margin:0 auto;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:2.5rem 2rem;
}
.card{display:flex;flex-direction:column;align-items:center;gap:.4rem}
.photo{
  width:100%;aspect-ratio:4/5;display:grid;place-items:center;overflow:hidden;
  border:2px solid var(--ink);border-radius:46% 46% 6px 6px / 30% 30% 6px 6px;
  background:var(--cream-2);margin-bottom:.8rem;
  transition:transform .35s ease;
}
.photo img{width:100%;height:100%;object-fit:cover}
.photo svg{width:42%;height:60%;color:var(--ink)}
.card:hover .photo{transform:translateY(-6px) rotate(-1deg)}
.card h3{
  font-size:1.4rem;
  font-weight:700;
  line-height:1.2;
  margin-top:.2rem;
}

.desc{
  font-size:1rem;
  color:var(--ink-soft);
  max-width:30ch;
  line-height:1.5;
  flex-grow:1;
  padding-top:.5rem;
  margin-top:.3rem;
  position:relative;
}
.desc::before{
  content:"";
  position:absolute;top:0;left:50%;
  width:28px;height:1px;
  background:var(--ink-soft);
  transform:translateX(-50%);
  opacity:.6;
}

.price{
  font-size:1.35rem;
  margin-top:.3rem;
}

.btn{
  display:inline-block;margin-top:.5rem;padding:.55rem 1.6rem;
  border:2px solid var(--ink);border-radius:999px;
  text-decoration:none;font-size:.9rem;letter-spacing:.06em;
  transition:background .2s,color .2s;
}
a.btn:hover{background:var(--ink);color:var(--cream)}
.btn.off{border-style:dashed;opacity:.55}
.sold .photo{opacity:.55}

/* STOPKA */
footer{padding:3rem 1rem 2.5rem;text-align:center;border-top:2px dashed var(--ink);margin:2rem clamp(1rem,4vw,3rem) 0}
.foot-name{font-size:2.6rem;margin-bottom:.5rem}
.small{font-size:.8rem;color:var(--ink-soft)}
footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.5rem;margin-top:.6rem}

/* STRONA GŁÓWNA: nazwa jest już w sekcji startowej, więc nie powtarzamy jej w nagłówku */
.top.home{justify-content:flex-end}
.top.home .brand{display:none}

/* TABLET */
@media (max-width:1000px){
  .grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
}

/* TELEFON */
@media (max-width:720px){
  .top{flex-direction:column;gap:.2rem;padding:.9rem 1rem .3rem}
  .top.home{align-items:center}
  .top nav{gap:1.4rem;font-size:.85rem}
  .brand{font-size:1.8rem;line-height:1.1}

  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "title title" 
      "still still" 
      "left right" 
      "sl sr";
    gap: 1rem 0.5rem !important; /* Bezpieczne, równe odstępy */
    min-height: auto;
    padding-bottom: 2rem;
  }
  
  .hero h1 { 
    padding-top: 2rem !important; 
  }
  
  .still {
    grid-area: still;
    grid-row: auto !important; /* KLUCZOWE: Resetuje rozciąganie. Ikony trzymają się tylko swojego wiersza! */
    gap: 1rem !important; 
    margin-top: 0 !important;
  }
  
  /* Zmniejszone grafiki */
  .still .g1 { width: 35px !important; height: 85px !important; }
  .still .vs { width: 100px !important; height: 120px !important; }
  .still .cd { width: 45px !important; height: 105px !important; }
  
  /* Teksty boczne układają się naturalnie pod ikonami */
  .side.left, .side.right {
    font-size: 0.65rem !important; 
    line-height: 1.4;
    margin-top: 0.5rem !important; /* Daje oddech między wazonem a tekstem */
    align-self: start; 
  }
  
  /* Fale wracają na swoje miejsce pod tekstem */
  .swirl.sl, .swirl.sr {
    margin-top: 0 !important; 
  }

  .section{padding:1rem 1rem 3rem}
  .section h2{font-size:2.8rem}
  .swirl.mid{margin-bottom:1.5rem}

  .grid{grid-template-columns:repeat(2,1fr);gap:1.8rem 1rem}
  .photo{aspect-ratio:1/1.15;margin-bottom:.5rem;border-width:1.5px}
  .card h3{font-size:1.1rem;line-height:1.2}
  .desc{font-size:.75rem;line-height:1.4}
  .price{font-size:1.1rem}
  .btn{padding:.45rem 1.1rem;font-size:.8rem}
  .card:hover .photo{transform:none}

  .legal{padding-top:1.5rem}
  footer{margin:1rem 1rem 0;padding:2rem .5rem}

  .top { 
    position: sticky;
    top: 0;
    z-index: 999; 
    background-color: var(--cream);
    padding: 10px 15px; 
    /* Miękki, jasnofioletowy cień */
    box-shadow: 0 4px 15px color-mix(in srgb, var(--ink) 15%, transparent);
  }

  .narrow p {
    font-size: 0.85rem; /* Zmniejszony rozmiar czcionki (z 1.05rem) */
    line-height: 1.45;  /* Delikatne zagęszczenie odstępów między linijkami */
    padding: 0 10px;    /* Lekki margines, by tekst nie dotykał samych krawędzi ekranu */
  }
}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}

/* STRONY PRAWNE */
.legal{max-width:720px;margin:0 auto;padding:3rem clamp(1rem,4vw,2rem) 4rem}
.legal h1{font-size:clamp(3rem,8.5vw,5rem);text-align:center}
.legal .swirl.mid{margin-bottom:1rem}
.legal .updated{text-align:center;font-size:.85rem;color:var(--ink-soft);margin-bottom:3rem}
.legal h2{font-size:1.15rem;font-weight:400;margin:2.5rem 0 .8rem;padding-bottom:.4rem;border-bottom:2px dashed var(--ink)}
.legal p,.legal li{margin-bottom:.7rem;max-width:68ch}
.legal ol,.legal ul{padding-left:1.4rem;margin-bottom:1rem}
.legal .form{border:2px solid var(--ink);border-radius:6px;padding:1.2rem 1.4rem;background:var(--cream-2);margin:1rem 0}
.legal .form p{margin-bottom:.4rem}

/* KOMPUTER: zwarta sekcja startowa (bez dużych pustych przestrzeni) */
@media (min-width:721px){
  .hero{
    max-width:1100px;margin:0 auto;min-height:0;
    grid-template-columns:1fr auto 1fr;
    column-gap:clamp(1.5rem,4vw,4rem);row-gap:0;
    padding:0 2rem 4rem;
  }
  .hero h1{font-size:clamp(4.5rem,10vw,8rem);padding-top:0}
  .still{margin-top:.5rem;gap:1.5rem}
  .still .g1{width:56px;height:140px}
  .still .vs{width:159px;height:190px}
  .still .cd{width:72px;height:170px}
  .side{font-size:1.05rem}
  .side.left{justify-self:end;text-align:right}
  .side.right{justify-self:start;text-align:left}
  .swirl.sl{justify-self:end}
  .swirl.sr{justify-self:start}
}

#o-nas,#dostawa{max-width:820px}

/* #show-map {
  background-color: #FFCC00;
  color: var(--ink);
  font-weight: 600;
  border: 2px solid var(--ink);
  transition: opacity 0.2s ease;
}

#show-map:hover {
  opacity: 0.85;
} */

/* #show-map {
  background-color: #FFCC00;
  color: var(--ink);
  font-weight: 600;
  border: 2px solid var(--ink);
  transition: all 0.2s ease;
}

#show-map:hover {
  background-color: var(--ink);
  color: var(--cream);
} */


#show-map {
  /* Mieszamy Twój główny kolor (20%) z białym (80%), uzyskując jasny fiolet */
  background-color: color-mix(in srgb, var(--ink) 20%, white);
  color: var(--ink);
  font-weight: 600;
  border: 2px solid var(--ink);
  transition: all 0.2s ease;
}

#show-map:hover {
  background-color: var(--ink);
  color: var(--cream);
}