/* Bella Farina — style */

:root{
  --cream:#FCF6E9;
  --sand:#ECE0CB;
  --wine:#6E2B24;
  --olive:#6F7A4D;
  --ink:#2B2420;
  --gold:#B8925A;
  --paper:#FBF7EF;
  --rose:#D9A7A0;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth; -webkit-text-size-adjust:100%; text-size-adjust:100%;}
body{
  background:var(--cream);
  color:var(--ink);
  font-family:'Jost',sans-serif;
  font-weight:300;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.serif{font-family:'Cormorant Garamond',serif; font-weight:400; letter-spacing:.01em;}
.container{max-width:1120px; margin:0 auto; padding:0 32px;}
a{color:inherit; text-decoration:none;}

/* Motyw tła z grafiki tlo.avif — delikatny szkic architektury */
.bg-motif{ position:relative; isolation:isolate; }
.bg-motif::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:url("tlo.avif") no-repeat right -60px center / min(900px, 80vw) auto;
  opacity:.13;
}

/* Nav */
header.site-nav{
  position:fixed; top:0; left:0; right:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:26px 44px;
  background:linear-gradient(180deg, rgba(20,16,12,.7) 0%, rgba(20,16,12,.32) 60%, rgba(20,16,12,0) 100%);
}
.logo-mark{font-family:'Cormorant Garamond',serif; font-size:22px; color:#fff; letter-spacing:.06em;}
nav.links{display:flex; gap:34px;}
nav.links a{color:#fff; font-size:13px; letter-spacing:.08em; opacity:.85;}
nav.links a:hover{opacity:1;}
@media (max-width:700px){ nav.links{display:none;} header.site-nav{padding:20px 22px;} }

/* HERO — przypięta sekwencja: napis się rozjeżdża, zdjęcia najeżdżają na siebie */
.hero{ --ts:min(25vw, 31svh); padding:0; height:640vh; position:relative; background:var(--wine); }
.hero-sticky{ position:sticky; top:0; height:100vh; height:100svh; overflow:hidden; background:var(--wine); }
.hero-stack{ position:absolute; inset:0; }
.hero-slide{ position:absolute; inset:0; margin:0; overflow:hidden; will-change:transform, clip-path; }
.hero-slide img{ width:100%; height:100%; object-fit:cover; display:block; }
.hero-slide + .hero-slide{ transform:translateY(100%); box-shadow:0 -30px 60px rgba(20,16,12,.45); }
.hero-slide:first-child{ clip-path:inset(50% 0 50% 0); }
.hero-slide::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(0deg, rgba(20,16,12,.55) 0%, rgba(20,16,12,0) 38%);
}
.hero-slide .dim{ position:absolute; inset:0; background:#140F0C; opacity:0; pointer-events:none; }

.hero-title{
  position:absolute; inset:0; z-index:3; pointer-events:none;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  font-size:var(--ts); line-height:.8; font-weight:400; color:var(--cream); letter-spacing:-.01em;
}
.hero-title span{ display:block; will-change:transform; }
.hero-eyebrow{
  position:absolute; z-index:3; top:calc(50% - var(--ts) * .8 - 46px); left:0; right:0; text-align:center;
  font-size:13px; letter-spacing:.22em; color:var(--gold);
}
.hero-sub{
  position:absolute; z-index:3; left:0; right:0; text-align:center; padding:0 24px;
  top:calc(50% + var(--ts) * .8 + 22px);
  font-size:clamp(14px,1.4vw,17px); color:#EAD9CE; max-width:520px; margin:0 auto;
}
.hero-hint{
  position:absolute; z-index:3; bottom:calc(30px + env(safe-area-inset-bottom, 0px)); left:0; right:0; text-align:center;
  font-size:12px; letter-spacing:.18em; color:#EAD9CE; opacity:.85;
}
.hero-hint::after{
  content:""; display:block; width:1px; height:34px; margin:10px auto 0; background:currentColor; opacity:.6;
  animation:hint 1.8s ease-in-out infinite; transform-origin:top;
}
@keyframes hint{ 0%{transform:scaleY(0);} 50%{transform:scaleY(1);} 100%{transform:scaleY(0); transform-origin:bottom;} }
.hero-caption{
  position:absolute; z-index:2; left:clamp(22px,4vw,56px); bottom:clamp(26px,5vh,54px);
  color:var(--cream); opacity:0; max-width:420px;
}
.hero-caption .n{ font-family:'Jost',sans-serif; font-size:13px; letter-spacing:.14em; color:var(--gold); }
.hero-caption .t{ display:block; font-size:clamp(28px,3.2vw,44px); line-height:1.1; margin-top:6px; }
@media (max-width:700px){
  .hero{ --ts:min(31vw, 30svh); }
  .hero-caption{ bottom:calc(104px + env(safe-area-inset-bottom, 0px)); right:22px; }
  .hero-hint{ bottom:calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion:reduce){ .hero-hint::after{ animation:none; } }

/* Section shell */
section{padding:130px 0;}
.eyebrow{font-size:13px; letter-spacing:.2em; color:var(--wine); margin-bottom:16px;}
h2.section-title{font-size:clamp(34px,4.4vw,54px); font-weight:400; max-width:620px; line-height:1.15;}
p.lede{max-width:480px; font-size:17px; margin-top:22px; color:#4a423b;}

/* INTRO */
.intro{ padding:110px 0; min-height:100svh; display:flex; align-items:center; }
.intro-grid{ display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; width:100%; }
.intro-text{ display:flex; flex-direction:column; justify-content:center; }
.intro-media{ margin:0; overflow:hidden; border-radius:2px; aspect-ratio:4/5; background:var(--sand); }
.intro-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.intro-text .signature{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:22px; color:var(--wine); margin-top:26px;}
@media (max-width:850px){ .intro-grid{grid-template-columns:1fr; gap:40px;} }

/* ULUBIONE — owalne kadry w stylu referencji */
.favs-head{text-align:center; margin-bottom:70px;}
.favs-head h2{margin:0 auto;}
.favs-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:34px; align-items:start; }
.fav{ text-align:center; }
.fav:nth-child(even){ margin-top:120px; }
.fav-oval{
  aspect-ratio:5/7; border-radius:50%; overflow:hidden;
  border:1.5px solid var(--ink); background:var(--sand);
}
.fav-oval img{ width:100%; height:100%; object-fit:cover; display:block; }
.fav h3{ font-size:clamp(22px,2.1vw,27px); line-height:1.25; margin-top:26px; }
.fav h3 span{ display:block; font-size:.75em; color:var(--wine); }
.fav hr{ width:110px; border:0; border-top:1px solid var(--rose); margin:16px auto; }
.fav p{ font-size:15px; line-height:1.55; color:#5a5048; max-width:250px; margin:0 auto; }
@media (max-width:900px){
  .favs-grid{ grid-template-columns:1fr 1fr; gap:40px 26px; }
}
@media (max-width:520px){
  .favs-grid{ grid-template-columns:1fr; max-width:320px; margin:0 auto; }
  .fav:nth-child(even){ margin-top:0; }
}

/* MENU — karuzela sterowana scrollem */
.menu-scroll{ padding:0; background:var(--ink); color:var(--cream); }
.menu-pin{ position:relative; }
.menu-sticky{
  position:sticky; top:0; height:100svh; overflow:hidden;
  display:flex; flex-direction:column; justify-content:center; gap:34px;
}
.menu-top{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; width:100%; }
.menu-top .eyebrow{ color:var(--gold); }
.menu-top h2{ color:var(--cream); font-size:clamp(40px,5vw,64px); line-height:1; }
.menu-meta{ text-align:right; min-width:150px; }
.menu-count{ font-family:'Cormorant Garamond',serif; font-size:22px; color:var(--gold); }
.menu-bar{ width:150px; height:1px; background:rgba(252,246,233,.2); margin-top:10px; margin-left:auto; }
.menu-bar i{ display:block; height:100%; width:0; background:var(--gold); }
.menu-track{
  display:flex; gap:2px; will-change:transform;
  padding-left:max(32px, calc((100vw - 1120px) / 2 + 32px));
  padding-right:max(32px, calc((100vw - 1120px) / 2 + 32px));
  width:max-content;
}
.pizza-card{ position:relative; height:min(60svh, 500px); aspect-ratio:3/4; overflow:hidden; flex:0 0 auto; background:#3a302a; }
.pizza-card img{width:100%; height:100%; object-fit:cover; display:block; filter:saturate(1.02);}
.pizza-card.noimg{ background:radial-gradient(circle at 50% 40%, #8a3a30 0%, var(--wine) 45%, #3a1712 100%); }
.pizza-card.noimg img{ display:none; }
.pizza-card .card-info{
  position:absolute; left:0; right:0; bottom:0; padding:26px 24px 24px;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(20,16,12,.85) 100%);
  color:var(--cream);
}
.pizza-card h3{font-size:26px; font-weight:400; display:flex; justify-content:space-between; gap:12px; align-items:baseline;}
.pizza-card h3 small{font-family:'Jost',sans-serif; font-size:14px; color:var(--gold); font-weight:400; white-space:nowrap;}
.pizza-card p{font-size:14px; color:#e8dfd0; margin-top:6px; line-height:1.5;}
.pizza-card img{ transition:transform .5s ease; }
.pizza-card:hover img{ transform:scale(1.04); }
.card-actions{ display:flex; gap:10px; align-items:center; margin-top:14px; flex-wrap:wrap; }
.card-order{
  font:inherit; font-size:12px; letter-spacing:.08em; cursor:pointer;
  padding:8px 18px; border-radius:999px; border:1px solid var(--gold);
  background:var(--gold); color:var(--ink); transition:.25s;
}
.card-order:hover{ background:var(--cream); border-color:var(--cream); }
.card-pyszne{ font-size:12px; letter-spacing:.06em; color:#e8dfd0; opacity:.8; border-bottom:1px solid rgba(232,223,208,.4); }
.card-pyszne:hover{ opacity:1; }
.card-order:focus-visible, .card-pyszne:focus-visible{ outline:2px solid var(--cream); outline-offset:3px; }
.fav-order{
  font:inherit; font-size:12px; letter-spacing:.08em; cursor:pointer; margin-top:18px;
  padding:8px 20px; border-radius:999px; border:1px solid var(--wine); background:transparent; color:var(--wine); transition:.25s;
}
.fav-order:hover{ background:var(--wine); color:var(--cream); }
@media (max-width:700px){
  .menu-top{ flex-direction:column; align-items:flex-start; }
  .menu-meta{ text-align:left; }
  .menu-bar{ margin-left:0; }
  .pizza-card{ height:min(58svh, 440px); }
}

/* Storia */
.storia{background:var(--sand);}
.storia-inner{display:grid; grid-template-columns:.9fr 1.1fr; gap:70px; align-items:center;}
.storia figure{overflow:hidden; border-radius:2px; aspect-ratio:5/6;}
.storia img{width:100%; height:100%; object-fit:cover; display:block;}
@media (max-width:850px){ .storia-inner{grid-template-columns:1fr;} .storia-inner figure{order:-1;} }

/* Gallery */
.gallery{padding:0; overflow:hidden;}
.gallery-strip{display:flex; gap:2px;}
.gallery-strip figure{flex:1 1 0; aspect-ratio:3/4; overflow:hidden; min-width:0;}
.gallery-strip img{width:100%; height:100%; object-fit:cover; display:block;}
@media (max-width:700px){ .gallery-strip{flex-wrap:wrap;} .gallery-strip figure{flex:1 1 45%;} }

/* Reservation + mapa */
.reserve{background:var(--wine); color:var(--cream); position:relative; overflow:hidden;}
.reserve .eyebrow{color:var(--gold);}
.reserve h2{color:var(--cream);}
.reserve p.lede{color:#EAD9CE;}
.reserve-grid{ display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.reserve-details{ margin-top:40px; border-top:1px solid rgba(184,146,90,.35); }
.reserve-details > div{ display:grid; grid-template-columns:120px 1fr; gap:20px; padding:16px 0; border-bottom:1px solid rgba(184,146,90,.35); align-items:baseline; }
.reserve-details h4{font-family:'Cormorant Garamond',serif; font-size:20px; font-weight:400; color:var(--gold);}
.reserve-details p{font-size:15px; color:#EAD9CE;}
.reserve-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:36px; }
.reserve-actions .btn{ margin-top:0; }
.btn.solid{ background:var(--gold); color:var(--wine); }
.btn.solid:hover{ background:var(--cream); border-color:var(--cream); }

.map-arch{ position:relative; margin:0; }
.map-frame{
  padding:12px; border:1px solid var(--gold);
  border-radius:50% 50% 8px 8px / 40% 40% 8px 8px;
}
.map-window{
  position:relative; aspect-ratio:4/5; overflow:hidden; background:#E9D9BC;
  border-radius:50% 50% 4px 4px / 40% 40% 4px 4px;
  box-shadow:0 0 0 1px rgba(184,146,90,.6);
}
.map-window iframe{
  position:absolute; inset:-2px; width:calc(100% + 4px); height:calc(100% + 4px); border:0;
  filter:sepia(.45) saturate(.75) contrast(.93) brightness(1.02) hue-rotate(-8deg);
}
.map-tint{
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 55%, rgba(110,43,36,.28) 100%),
    #F2DDB6;
  mix-blend-mode:multiply; opacity:.55;
}
.map-pin{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-100%); pointer-events:none;
  width:46px; filter:drop-shadow(0 6px 8px rgba(43,36,32,.35));
}
.map-stamp{
  position:absolute; right:-26px; bottom:70px; width:132px; height:132px; transform:rotate(-12deg);
  pointer-events:none;
}
.map-waves{ position:absolute; right:84px; bottom:112px; width:140px; transform:rotate(-12deg); pointer-events:none; opacity:.8; }
.map-arch figcaption{
  text-align:center; margin-top:18px; font-family:'Cormorant Garamond',serif; font-style:italic; font-size:21px; color:#EAD9CE;
}
@media (max-width:900px){
  .reserve-grid{ grid-template-columns:1fr; gap:60px; }
  .map-arch{ max-width:440px; width:100%; margin:0 auto; }
  .map-stamp{ right:-8px; width:108px; height:108px; }
  .map-waves{ display:none; }
}

/* Pasek odbioru osobistego — nad stopką */
.pickup-bar{ background:var(--sand); border-top:1px solid #dccfb9; }
.pickup-bar[hidden]{ display:none; }
.pickup-inner{ display:flex; align-items:center; gap:22px; padding-top:26px; padding-bottom:26px; flex-wrap:wrap; }
.pickup-inner svg{ width:48px; height:48px; flex:none; }
.pickup-inner .txt{ flex:1; min-width:220px; }
.pickup-inner h3{ font-size:26px; line-height:1.15; }
.pickup-inner p{ font-size:14.5px; color:#5a5048; }
.btn-nav{
  display:inline-flex; align-items:center; gap:10px; padding:15px 28px; border-radius:999px;
  background:var(--wine); color:var(--cream); font-size:14px; letter-spacing:.04em; transition:.2s;
}
.btn-nav:hover{ background:#5a211b; }
.btn-nav svg{ width:18px; height:18px; }
.ord .btn-nav{ margin-top:12px; }
.btn{
  display:inline-block; margin-top:44px; padding:16px 40px; border:1px solid var(--gold);
  color:var(--cream); font-size:13px; letter-spacing:.14em; border-radius:999px; transition:.25s;
}
.btn:hover{background:var(--gold); color:var(--wine);}
a:focus-visible{outline:2px solid var(--gold); outline-offset:4px;}

/* Footer */
footer{padding:60px 0 40px; text-align:center;}
footer .logo-mark{color:var(--ink); font-size:20px;}
footer p{font-size:13px; color:#7a7166; margin-top:14px;}
/* ================= ZAMAWIANIE ================= */
button{ font:inherit; color:inherit; }
.ord-lock{ overflow:hidden; }
.ord-overlay{
  position:fixed; inset:0; z-index:90; background:rgba(28,22,18,.55);
  opacity:0; pointer-events:none; transition:opacity .35s ease;
  backdrop-filter:blur(2px);
}
.ord-overlay.open{ opacity:1; pointer-events:auto; }
.ord{
  position:fixed; top:0; right:0; bottom:0; z-index:100;
  width:min(640px, 100vw); background:var(--paper); color:var(--ink);
  display:flex; flex-direction:column;
  transform:translateX(102%); transition:transform .45s cubic-bezier(.2,.8,.2,1);
  box-shadow:-30px 0 60px rgba(28,22,18,.25);
  padding-top:env(safe-area-inset-top, 0px);
}
.ord.open{ transform:none; }
.ord-head{
  display:grid; grid-template-columns:44px 1fr 44px; align-items:center; gap:8px;
  padding:16px 18px; border-bottom:1px solid var(--sand);
}
.ord-head h2{ font-size:28px; text-align:center; line-height:1.1; }
.icon-btn{
  width:44px; height:44px; border-radius:50%; border:1px solid transparent; background:transparent;
  display:grid; place-items:center; cursor:pointer; transition:.2s;
}
.icon-btn:hover{ background:var(--sand); }
.icon-btn[hidden]{ visibility:hidden; display:grid; }
.icon-btn svg{ width:20px; height:20px; }

.ord-steps{ display:flex; gap:6px; padding:12px 22px 0; }
.ord-steps[hidden]{ display:none; }
.ord-step{ flex:1; font-size:11.5px; color:#9a8f82; }
.ord-step i{ display:block; height:3px; border-radius:3px; background:var(--sand); margin-bottom:7px; }
.ord-step.done i, .ord-step.now i{ background:var(--wine); }
.ord-step.now{ color:var(--wine); font-weight:500; }

.ord-body{ flex:1; overflow-y:auto; overscroll-behavior:contain; padding:22px 22px 30px; }
.ord-foot{
  border-top:1px solid var(--sand); background:var(--paper);
  padding:14px 22px calc(14px + env(safe-area-inset-bottom, 0px));
  display:flex; gap:12px; align-items:center;
}
.ord-foot:empty{ display:none; }

.cta{
  flex:1; display:flex; justify-content:space-between; align-items:center; gap:14px;
  padding:16px 24px; border-radius:999px; border:0; cursor:pointer;
  background:var(--wine); color:var(--cream); font-size:15px; letter-spacing:.03em; transition:.2s;
}
.cta:hover{ background:#5a211b; }
.cta:disabled{ background:#b9ada0; cursor:not-allowed; }
.cta b{ font-weight:500; }
.cta.center{ justify-content:center; }
.ghost{
  padding:15px 22px; border-radius:999px; border:1px solid var(--ink); background:transparent;
  cursor:pointer; font-size:14px; transition:.2s;
}
.ghost:hover{ background:var(--ink); color:var(--cream); }
:where(.ord) button:focus-visible, :where(.ord) input:focus-visible, :where(.ord) textarea:focus-visible, :where(.ord) label:focus-within{
  outline:2px solid var(--gold); outline-offset:2px;
}

.ord h3.blk{ font-size:23px; margin:30px 0 4px; display:flex; justify-content:space-between; align-items:baseline; }
.ord h3.blk:first-child{ margin-top:0; }
.ord h3.blk small{ font-family:'Jost',sans-serif; font-size:12.5px; color:#8c8174; font-weight:300; }
.ord .hint{ font-size:13px; color:#8c8174; margin-bottom:14px; }

/* Zakładki */
.tabs{ display:flex; gap:4px; background:var(--sand); padding:4px; border-radius:999px; margin-bottom:20px; }
.tabs button{ flex:1; padding:10px; border:0; border-radius:999px; background:transparent; cursor:pointer; font-size:14px; }
.tabs button.on{ background:var(--paper); box-shadow:0 1px 3px rgba(43,36,32,.12); font-weight:500; }

/* Lista pizz */
.plist{ display:flex; flex-direction:column; }
.prow{
  display:grid; grid-template-columns:76px 1fr auto; gap:16px; align-items:center;
  padding:14px 6px; border-bottom:1px solid var(--sand); cursor:pointer; text-align:left;
  background:transparent; border-left:0; border-right:0; border-top:0; width:100%; transition:background .2s;
}
.prow:hover{ background:#F5EEE0; }
.thumb{ width:76px; height:76px; border-radius:50%; overflow:hidden; background:var(--sand); flex:none; }
.thumb img, .thumb svg{ width:100%; height:100%; object-fit:cover; display:block; }
.prow h4{ font-family:'Cormorant Garamond',serif; font-size:22px; font-weight:500; line-height:1.15; }
.prow p{ font-size:13px; color:#7d7166; line-height:1.45; margin-top:3px; }
.prow .from{ font-size:14px; white-space:nowrap; text-align:right; }
.prow .from small{ display:block; font-size:11px; color:#9a8f82; }
.tag{ display:inline-block; font-size:10.5px; letter-spacing:.06em; padding:2px 8px; border-radius:999px; background:#F0E3D0; color:var(--wine); margin-left:6px; vertical-align:middle; font-family:'Jost',sans-serif; font-weight:400; }

/* Siatka miniaturek (dodatki, sosy, napoje) */
.tgrid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(128px,1fr)); gap:10px; }
.tile{
  position:relative; border:1px solid var(--sand); border-radius:16px; background:#fff;
  padding:12px 10px 10px; text-align:center; transition:border-color .2s, box-shadow .2s;
}
.tile.on{ border-color:var(--wine); box-shadow:0 0 0 1px var(--wine) inset; }
.tile .tth{ width:62px; height:62px; margin:0 auto 6px; }
.tile .tth svg, .tile .tth img{ width:100%; height:100%; display:block; border-radius:50%; object-fit:cover; }
.tile h5{ font-size:13.5px; font-weight:400; line-height:1.25; min-height:34px; display:flex; align-items:center; justify-content:center; }
.tile .pr{ font-size:12.5px; color:#8c8174; margin:2px 0 8px; }
.tile .qty{ justify-content:center; }
.tile .badge{
  position:absolute; top:8px; right:8px; min-width:22px; height:22px; padding:0 6px; border-radius:999px;
  background:var(--wine); color:var(--cream); font-size:12px; display:grid; place-items:center;
}
.addbtn{
  width:100%; padding:7px; border-radius:999px; border:1px solid var(--ink); background:transparent;
  cursor:pointer; font-size:13px; transition:.2s;
}
.addbtn:hover{ background:var(--ink); color:var(--cream); }

.qty{ display:flex; align-items:center; gap:4px; }
.qty button{
  width:32px; height:32px; border-radius:50%; border:1px solid #cdbfa8; background:#fff;
  cursor:pointer; font-size:17px; line-height:1; display:grid; place-items:center; transition:.2s;
}
.qty button:hover:not(:disabled){ border-color:var(--ink); }
.qty button:disabled{ opacity:.35; cursor:not-allowed; }
.qty span{ min-width:26px; text-align:center; font-weight:500; }
.qty.lg button{ width:42px; height:42px; }

/* Konfigurator */
.cfg-hero{ display:grid; grid-template-columns:150px 1fr; gap:20px; align-items:center; margin-bottom:8px; }
.cfg-hero .thumb{ width:150px; height:150px; border:1.5px solid var(--ink); }
.cfg-hero h3{ font-size:34px; line-height:1.05; }
.cfg-hero p{ font-size:14px; color:#6e645a; margin-top:8px; line-height:1.5; }
@media (max-width:480px){ .cfg-hero{ grid-template-columns:110px 1fr; } .cfg-hero .thumb{ width:110px; height:110px; } .cfg-hero h3{ font-size:28px; } }

.sizes{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.opt{ position:relative;
  border:1px solid var(--sand); border-radius:16px; background:#fff; cursor:pointer;
  padding:14px 10px; text-align:center; transition:.2s; display:block;
}
.opt:hover{ border-color:#cdbfa8; }
.opt input{ position:absolute; opacity:0; pointer-events:none; }
.opt.on{ border-color:var(--wine); box-shadow:0 0 0 1px var(--wine) inset; background:#FFFBF4; }
.opt .ring{ height:64px; display:grid; place-items:center; }
.opt strong{ display:block; font-weight:500; font-size:15px; }
.opt small{ display:block; font-size:12px; color:#8c8174; }
.opt .p{ margin-top:4px; font-size:14px; color:var(--wine); }
.crusts{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.crusts .opt{ text-align:left; display:flex; justify-content:space-between; align-items:center; gap:10px; padding:14px 16px; }
.crusts .opt strong{ font-size:14px; }

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  padding:8px 14px; border-radius:999px; border:1px solid #cdbfa8; background:#fff; cursor:pointer; font-size:13.5px; transition:.2s;
}
.chip.off{ text-decoration:line-through; color:#9a8f82; background:#F3ECE0; border-style:dashed; }
.switch{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 16px; border:1px solid var(--sand); border-radius:16px; background:#fff; cursor:pointer; }
.switch + .switch{ margin-top:8px; }
.switch input{ appearance:none; width:44px; height:26px; border-radius:999px; background:#d9cdb9; position:relative; cursor:pointer; transition:.2s; flex:none; }
.switch input::after{ content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:.2s; box-shadow:0 1px 2px rgba(0,0,0,.2); }
.switch input:checked{ background:var(--olive); }
.switch input:checked::after{ left:21px; }
.switch span small{ display:block; font-size:12px; color:#8c8174; }

.field{ display:block; margin-bottom:12px; }
.field > span{ display:block; font-size:12.5px; color:#6e645a; margin-bottom:5px; }
.field input, .field textarea, .field select{
  width:100%; font:inherit; font-size:16px; padding:13px 15px; border-radius:12px; border:1px solid #d6c8b1; background:#fff; color:var(--ink);
}
.field textarea{ resize:vertical; min-height:70px; }
.field.err input{ border-color:#B03A2E; background:#FFF6F4; }
.field .emsg{ display:none; font-size:12px; color:#B03A2E; margin-top:4px; }
.field.err .emsg{ display:block; }
.row2{ display:grid; grid-template-columns:2fr 1fr; gap:10px; }
.phone-in{ display:flex; align-items:stretch; }
.phone-in em{ font-style:normal; padding:13px 12px; border:1px solid #d6c8b1; border-right:0; border-radius:12px 0 0 12px; background:#F3ECE0; font-size:15px; }
.phone-in input{ border-radius:0 12px 12px 0; }

/* Koszyk */
.citem{ display:grid; grid-template-columns:64px 1fr auto; gap:14px; padding:16px 0; border-bottom:1px solid var(--sand); align-items:start; }
.citem .thumb{ width:64px; height:64px; }
.citem h4{ font-family:'Cormorant Garamond',serif; font-size:21px; font-weight:500; line-height:1.15; }
.citem ul{ list-style:none; font-size:12.5px; color:#7d7166; margin-top:4px; line-height:1.5; }
.citem .right{ display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.citem .price{ font-weight:500; white-space:nowrap; }
.linkbtn{ border:0; background:none; font-size:12.5px; color:#8c8174; text-decoration:underline; cursor:pointer; padding:0; }
.linkbtn:hover{ color:var(--wine); }
.empty{ text-align:center; padding:50px 10px; color:#7d7166; }
.empty svg{ width:120px; height:120px; margin:0 auto 14px; display:block; }
.empty h4{ font-family:'Cormorant Garamond',serif; font-size:26px; font-weight:400; color:var(--ink); }

.upsell{ display:flex; gap:10px; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; }
.upsell .tile{ flex:0 0 128px; }

.mode{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.mode .opt{ text-align:left; padding:16px; display:grid; grid-template-columns:36px 1fr; gap:12px; align-items:center; }
.mode .opt svg{ width:36px; height:36px; }

.totals{ margin-top:22px; padding:18px; border-radius:16px; background:#F5EEE0; }
.totals div{ display:flex; justify-content:space-between; font-size:14.5px; padding:3px 0; }
.totals .sum{ border-top:1px solid #dccfb9; margin-top:8px; padding-top:10px; font-size:18px; font-weight:500; }
.note{
  display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border-radius:12px; font-size:13px; line-height:1.5; margin-top:12px;
  background:#FBF0DA; color:#6a5222;
}
.note svg{ width:18px; height:18px; flex:none; margin-top:1px; }
.note.good{ background:#EEF1E3; color:#4a5530; }

/* Płatność */
.pay{ display:flex; flex-direction:column; gap:10px; }
.pay .opt{ text-align:left; display:grid; grid-template-columns:44px 1fr auto; gap:14px; align-items:center; padding:16px; }
.pay .opt svg{ width:44px; height:44px; }
.pay .opt[aria-disabled="true"]{ cursor:not-allowed; background:#F3EEE6; opacity:.75; }
.pay .soon{ font-size:11px; letter-spacing:.06em; padding:3px 9px; border-radius:999px; background:#E4DACB; color:#6e645a; }
.subpay{ display:flex; gap:8px; margin:4px 0 0 58px; flex-wrap:wrap; }

/* SMS */
.phone{
  width:min(330px, 100%); margin:6px auto 0; border-radius:40px; background:#1d1916; padding:12px;
  box-shadow:0 30px 60px rgba(43,36,32,.25);
}
.phone-scr{ border-radius:30px; background:#F7F4EF; overflow:hidden; font-family:-apple-system, 'Segoe UI', 'Jost', sans-serif; }
.phone-top{ display:flex; flex-direction:column; align-items:center; padding:18px 12px 12px; background:#EFEAE2; border-bottom:1px solid #e0d8cc; }
.phone-top .av{ width:44px; height:44px; border-radius:50%; background:var(--wine); color:var(--cream); display:grid; place-items:center; font-family:'Cormorant Garamond',serif; font-size:20px; }
.phone-top b{ font-size:13px; font-weight:500; margin-top:6px; }
.phone-top small{ font-size:11px; color:#8c8174; }
.phone-msgs{ padding:16px 14px; min-height:260px; display:flex; flex-direction:column; justify-content:flex-end; }
.bubble{
  align-self:flex-end; max-width:88%; background:#2F7CF6; color:#fff; padding:10px 13px; border-radius:18px 18px 4px 18px;
  font-size:12.5px; line-height:1.45; white-space:pre-wrap; word-break:break-word;
}
.bubble.draft{ background:#fff; color:#2b2420; border:1px solid #e0d8cc; border-radius:14px; align-self:stretch; max-width:none; }
.delivered{ align-self:flex-end; font-size:10.5px; color:#8c8174; margin-top:4px; min-height:14px; }
.phone-bar{ display:flex; gap:8px; align-items:center; padding:10px 12px 14px; border-top:1px solid #e0d8cc; }
.phone-bar span{ flex:1; font-size:11.5px; color:#9a8f82; }
.phone-send{ width:34px; height:34px; border-radius:50%; border:0; background:#2F7CF6; color:#fff; cursor:pointer; display:grid; place-items:center; }
.phone-send svg{ width:16px; height:16px; }

/* Śledzenie */
.track{ text-align:center; }
.timer{ position:relative; width:240px; height:240px; margin:8px auto 10px; }
.timer svg{ width:100%; height:100%; transform:rotate(-90deg); }
.timer .t{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.timer .t b{ font-family:'Cormorant Garamond',serif; font-size:64px; font-weight:400; line-height:1; font-variant-numeric:tabular-nums; }
.timer .t small{ font-size:12.5px; color:#8c8174; margin-top:6px; }
.track h3{ font-size:30px; }
.track .ordno{ font-size:13px; color:#8c8174; margin-top:4px; }
.stages{ list-style:none; text-align:left; margin:26px auto 0; max-width:360px; }
.stages li{ display:grid; grid-template-columns:26px 1fr auto; gap:12px; align-items:center; padding:9px 0; color:#a3988b; font-size:14.5px; }
.stages li i{ width:14px; height:14px; border-radius:50%; border:2px solid #d3c6b1; margin:0 auto; }
.stages li.done{ color:var(--ink); }
.stages li.done i{ background:var(--olive); border-color:var(--olive); }
.stages li.now{ color:var(--wine); font-weight:500; }
.stages li.now i{ border-color:var(--wine); background:var(--wine); box-shadow:0 0 0 5px rgba(110,43,36,.15); }
.stages li small{ font-size:12px; color:#a3988b; font-weight:300; }
.recap{ text-align:left; margin-top:26px; padding:18px; border-radius:16px; background:#F5EEE0; font-size:13.5px; }
.recap div{ display:flex; justify-content:space-between; gap:12px; padding:3px 0; }

/* Pływający przycisk */
.ord-fab{
  position:fixed; right:22px; bottom:calc(22px + env(safe-area-inset-bottom, 0px)); z-index:80;
  display:flex; align-items:center; gap:12px; padding:14px 22px 14px 18px; border-radius:999px; border:0; cursor:pointer;
  background:var(--wine); color:var(--cream); font-size:14px; letter-spacing:.03em;
  box-shadow:0 14px 34px rgba(43,36,32,.35), 0 0 0 1px rgba(184,146,90,.7); transition:transform .2s, background .2s;
}
.ord-fab:hover{ transform:translateY(-2px); background:#5a211b; }
.ord-fab svg{ width:22px; height:22px; }
.ord-fab .cnt{ min-width:22px; height:22px; border-radius:999px; background:var(--gold); color:var(--ink); font-size:12px; display:grid; place-items:center; padding:0 6px; font-weight:500; }
.ord-fab.bump{ animation:bump .35s ease; }
@keyframes bump{ 50%{ transform:scale(1.08); } }
.toast{
  position:fixed; left:calc(100vw - min(640px, 100vw) / 2); bottom:calc(92px + env(safe-area-inset-bottom, 0px)); transform:translate(-50%, 20px); z-index:120;
  background:var(--ink); color:var(--cream); padding:12px 20px; border-radius:999px; font-size:13.5px;
  opacity:0; pointer-events:none; transition:.3s;
}
.toast.show{ opacity:1; transform:translate(-50%,0); }
@media (prefers-reduced-motion:reduce){ .ord, .ord-overlay, .toast{ transition:none; } .ord-fab.bump{ animation:none; } }


/* ================= TELEFON ================= */
body{ -webkit-tap-highlight-color:transparent; }
.nav-toggle{
  display:none; width:44px; height:44px; margin-right:-10px; border:0; background:transparent; cursor:pointer;
  flex-direction:column; align-items:center; justify-content:center; gap:7px;
}
.nav-toggle span{ display:block; width:24px; height:1.5px; background:#fff; transition:transform .3s ease; }
.mnav-open .nav-toggle span:first-child{ transform:translateY(4.25px) rotate(45deg); }
.mnav-open .nav-toggle span:last-child{ transform:translateY(-4.25px) rotate(-45deg); }
.nav-toggle:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; border-radius:6px; }

.mnav{
  position:fixed; inset:0; z-index:45; background:var(--wine); color:var(--cream);
  display:flex; flex-direction:column; justify-content:space-between;
  padding:calc(96px + env(safe-area-inset-top, 0px)) 28px calc(30px + env(safe-area-inset-bottom, 0px));
  opacity:0; visibility:hidden; transition:opacity .35s ease, visibility 0s linear .35s;
  overflow-y:auto;
}
.mnav-open .mnav{ opacity:1; visibility:visible; transition:opacity .35s ease; }
.mnav ul{ list-style:none; }
.mnav li{ border-bottom:1px solid rgba(184,146,90,.3); }
.mnav li a{
  display:block; padding:12px 0; font-family:'Cormorant Garamond',serif; font-size:clamp(34px,10vw,44px); line-height:1.15;
  transform:translateY(14px); opacity:0; transition:transform .45s ease, opacity .45s ease;
}
.mnav-open .mnav li a{ transform:none; opacity:1; }
.mnav-open .mnav li:nth-child(2) a{ transition-delay:.04s; }
.mnav-open .mnav li:nth-child(3) a{ transition-delay:.08s; }
.mnav-open .mnav li:nth-child(4) a{ transition-delay:.12s; }
.mnav-open .mnav li:nth-child(5) a{ transition-delay:.16s; }
.mnav-foot{ margin-top:30px; }
.mnav-order{
  display:block; text-align:center; padding:16px; border-radius:999px; background:var(--gold); color:var(--wine);
  font-size:15px; letter-spacing:.04em; font-weight:400;
}
.mnav-tel{ display:block; text-align:center; margin-top:18px; font-family:'Cormorant Garamond',serif; font-size:24px; color:var(--cream); }
.mnav-foot p{ text-align:center; font-size:13px; color:#EAD9CE; margin-top:6px; }
.mnav-open, .mnav-open body{ overflow:hidden; }
.mnav-open .ord-fab{ display:none !important; }

@media (max-width:700px){
  .nav-toggle{ display:flex; }
  header.site-nav{ padding:calc(10px + env(safe-area-inset-top, 0px)) 22px 10px; min-height:64px; }
  .mnav-open header.site-nav{ background:transparent; }

  section{ padding:84px 0; }
  .container{ padding:0 22px; }
  h2.section-title{ font-size:clamp(30px,8.4vw,38px); }
  p.lede{ font-size:16px; }

  .intro{ padding:84px 0; min-height:0; }
  .intro-grid{ gap:36px; }

  .favs-head{ margin-bottom:44px; }
  .favs-grid{ grid-template-columns:1fr 1fr; gap:34px 16px; max-width:none; margin:0; }
  .fav:nth-child(even){ margin-top:72px; }
  .fav h3{ font-size:21px; margin-top:16px; }
  .fav hr{ width:56px; margin:10px auto; }
  .fav p{ font-size:13.5px; }
  .fav-order{ margin-top:14px; padding:8px 18px; min-height:36px; }

  .menu-sticky{ justify-content:flex-start; padding-top:calc(78px + env(safe-area-inset-top, 0px)); gap:22px; }
  .menu-top h2{ font-size:46px; }
  .menu-top{ flex-direction:row; align-items:flex-end; }
  .menu-meta{ text-align:right; min-width:0; }
  .menu-bar{ width:90px; margin-left:auto; }
  .menu-track{ padding-left:22px; padding-right:22px; }
  .pizza-card{ height:min(calc(100svh - 250px), 470px); }
  .pizza-card .card-info{ padding:20px 18px 18px; }
  .pizza-card h3{ font-size:24px; }
  .card-order{ padding:10px 18px; }

  .storia-inner{ gap:36px; }

  .reserve-grid{ gap:56px; }
  .reserve-details > div{ grid-template-columns:96px 1fr; gap:14px; }
  .reserve-actions .btn{ flex:1 1 auto; text-align:center; padding:15px 20px; }

  .pickup-inner{ gap:14px; }
  .pickup-inner .btn-nav{ width:100%; justify-content:center; }

  footer{ padding-bottom:calc(110px + env(safe-area-inset-bottom, 0px)); }

  .ord-fab{ right:16px; bottom:calc(16px + env(safe-area-inset-bottom, 0px)); padding:12px 18px 12px 14px; font-size:13.5px; }
}
@media (max-width:359px){
  .favs-grid{ grid-template-columns:1fr; max-width:280px; margin:0 auto; }
  .fav:nth-child(even){ margin-top:0; }
}

/* Panel zamówienia na telefonie */
@media (max-width:520px){
  .ord{ width:100vw; box-shadow:none; }
  .ord-head{ padding:8px 10px; }
  .ord-head h2{ font-size:24px; }
  .ord-steps{ padding:10px 16px 0; gap:4px; }
  .ord-step{ min-width:0; }
  .ord-step .lbl{ display:none; }
  .ord-step.now .lbl{ display:block; white-space:nowrap; }
  .ord-body{ padding:18px 16px 28px; }
  .ord-foot{ padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); gap:10px; }
  .cta{ padding:15px 20px; font-size:14.5px; white-space:nowrap; gap:10px; }
  .ghost{ padding:14px 18px; }
  .qty.lg button{ width:40px; height:40px; }
  .qty button{ width:34px; height:34px; }
  .ord h3.blk{ font-size:22px; margin-top:26px; }

  .prow{ grid-template-columns:64px 1fr auto; gap:12px; padding:12px 2px; }
  .prow .thumb{ width:64px; height:64px; }
  .prow h4{ font-size:20px; }
  .tag{ margin-left:4px; }

  .sizes{ gap:8px; }
  .opt{ padding:12px 6px; }
  .crusts, .mode{ grid-template-columns:1fr; }
  .crusts .opt{ padding:14px 16px; }
  .tgrid{ grid-template-columns:repeat(2, 1fr); gap:8px; }
  .upsell .tile{ flex:0 0 132px; }

  .citem{ grid-template-columns:56px 1fr auto; gap:12px; }
  .citem .thumb{ width:56px; height:56px; }

  .pay .opt{ grid-template-columns:38px 1fr auto; gap:12px; padding:14px; }
  .pay .opt svg{ width:38px; height:38px; }
  .subpay{ margin-left:0; }

  .timer{ width:210px; height:210px; }
  .timer .t b{ font-size:54px; }
  .toast{ left:50%; bottom:calc(86px + env(safe-area-inset-bottom, 0px)); max-width:calc(100vw - 32px); text-align:center; }
}
@media (hover:none){
  .pizza-card:hover img{ transform:none; }
  .prow:hover{ background:transparent; }
}
