/* =========================================================
   Pizzeria Bazyl i Ja — style strony
   Czcionki: Oswald (nagłówki, nazwy pizz, ceny),
             Montserrat (tekst, przyciski, etykiety),
             Caveat Brush (odręczne akcenty)
   ========================================================= */

:root {
  /* Kolory */
  --cream: #F4ECDF;
  --paper: #FBF6EE;
  --ink: #241610;
  --ink-soft: #4A362A;
  --muted: #6A5242;
  --muted-2: #7D6553;
  --line: #E2D3BE;
  --line-2: #CDBBA3;

  --dark: #1A110C;
  --dark-2: #241712;
  --darkest: #120B08;
  --on-dark: #F4ECDF;
  --on-dark-muted: #EADBC6;
  --on-dark-soft: #D9C8B4;
  --on-dark-label: #CDBBA6;

  --ember: #F0A35E;      /* ciepły pomarańcz z ognia — przyciski na ciemnym */
  --ember-hover: #F5B679;
  --accent: #B3261E;     /* pomidorowa czerwień — ceny, „Hit”, akcenty */
  --accent-hover: #9A1F18;
  --basil: #2F5D2A;      /* bazyliowa zieleń — „Nowość”, „Bez mięsa” */
  --chili: #A3261C;
  --peach: #F5DFCB;
  --sage: #DCE8D3;

  /* Czcionki */
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
  --font-script: 'Caveat Brush', cursive;

  /* Układ */
  --container: 1200px;
  --gutter: clamp(24px, 5vw, 40px);      /* telefon: 24 px od krawędzi */
  --section-y: clamp(72px, 9vw, 112px);
  --radius: 16px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent; /* zamiast prostokątnego błysku — własne :active poniżej */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--darkest);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
a:not(.btn):active { opacity: .65; } /* widoczna reakcja na dotknięcie zwykłych linków */
p { margin: 0; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.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: 16px; top: -60px; z-index: 10;
  background: var(--ember); color: var(--dark); padding: 13px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon {
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  /* iPhone w poziomie: treść nie wchodzi pod wycięcie ekranu */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); }
.section--dark { background: var(--dark); color: var(--on-dark); }

/* ---------- Typografia ---------- */
.kicker {
  margin: 0 0 6px;
  font-family: var(--font-script);
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.1;
  color: var(--accent);
}
.kicker--ember { color: var(--ember); }

.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.h2--spaced { margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1.5px solid transparent; background: transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn--ember { background: var(--ember); color: var(--dark); }
.btn--ghost-light { border-color: rgba(244, 236, 223, .7); color: var(--on-dark); }
.btn--accent { background: var(--accent); color: #fff; }

/* hover tylko tam, gdzie jest kursor — na telefonie nie „przykleja się” po dotknięciu */
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn--ember:hover { background: var(--ember-hover); box-shadow: 0 8px 24px -10px rgba(240, 163, 94, .8); }
  .btn--ghost-light:hover { background: rgba(244, 236, 223, .1); border-color: var(--on-dark); }
  .btn--accent:hover { background: var(--accent-hover); }
}
.btn:active { transform: scale(.98); }

.btn--lg { min-height: 54px; padding: 0 30px; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 13px; }
.btn--tel { text-transform: none; letter-spacing: 0.04em; font-size: 16px; padding: 0 24px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ink);
}
.link-arrow .icon { transition: transform .25s var(--ease); }
@media (hover: hover) { .link-arrow:hover .icon { transform: translateX(4px); } }
.link-arrow--sm { font-size: 13px; border-bottom: 0; text-decoration: underline; text-underline-offset: 4px; }
/* ---------- Nagłówek ---------- */
.site-header { background: var(--dark); color: var(--on-dark); border-bottom: 1px solid #2E2019; }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  padding-block: 12px;
}
.brand {
  display: flex; align-items: center; gap: 12px; flex: 1 1 auto;
  text-decoration: none; color: var(--on-dark);
}
.brand img { width: 52px; height: 52px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__label {
  font-weight: 600; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--on-dark-label);
}
.brand__name { font-family: var(--font-script); font-size: 30px; }

.nav {
  display: flex; flex-wrap: wrap; gap: 0 22px;
  font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav a {
  color: var(--on-dark-muted); text-decoration: none; padding: 14px 0;
  background: linear-gradient(var(--ember), var(--ember)) no-repeat 0 calc(100% - 8px) / 0 2px;
  transition: background-size .3s var(--ease), color .2s ease;
}
@media (hover: hover) { .nav a:hover { color: var(--on-dark); background-size: 100% 2px; } }

/* ---------- Menu na telefonie (☰) ---------- */
.nav-toggle {
  display: none; flex: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--on-dark); cursor: pointer;
}
.nav-toggle:active { background: rgba(244, 236, 223, .1); }
/* trzy kreski, po otwarciu układają się w X */
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), background-color .2s ease;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ''; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-7px) rotate(-45deg); }

.mnav { display: none; }
.mnav__links { display: flex; flex-direction: column; }
.mnav__links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid #2E2019;
  font-family: var(--font-head); font-weight: 600; font-size: 30px; line-height: 1.15;
  letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; color: var(--on-dark);
}
.mnav__links .icon { color: var(--ember); }
.mnav__actions { display: flex; flex-direction: column; gap: 12px; }
.mnav__info {
  font-weight: 600; font-size: 13px; line-height: 1.8;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-label);
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 50%;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 12, 8, .93) 0%, rgba(20, 12, 8, .78) 48%, rgba(20, 12, 8, .3) 100%);
}
.hero__inner { position: relative; padding-block: clamp(72px, 11vw, 150px); }
.hero__content {
  max-width: 640px; display: flex; flex-direction: column; gap: 20px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .55);
}
.hero__kicker { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hero__kicker p { font-family: var(--font-script); font-size: clamp(30px, 3vw, 40px); line-height: 1; color: var(--ember); }
.hero__underline { display: block; overflow: visible; }
.hero__underline path { fill: none; stroke: var(--ember); stroke-width: 3; stroke-linecap: round; }
.hero__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(42px, 6.2vw, 88px); line-height: 1.02;
  text-transform: uppercase; letter-spacing: 0.005em;
}
.hero__lead { max-width: 540px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--on-dark-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; text-shadow: none; }
.hero__info {
  margin-top: 4px; font-weight: 600; font-size: 13px; line-height: 1.6;
  letter-spacing: 0.12em; text-transform: uppercase; color: #D8C6B1;
}

/* ---------- Wyróżniki ---------- */
.features { background: var(--paper); border-bottom: 1px solid var(--line); }
.features__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(20px, 3vw, 44px); padding-block: clamp(32px, 5vw, 60px);
}
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature h3 {
  margin-bottom: 6px; font-family: var(--font-head); font-weight: 600; font-size: 20px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.feature p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.feature__icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--peach); color: var(--chili);
  display: flex; align-items: center; justify-content: center;
}
.feature__icon--green { background: var(--sage); color: var(--basil); }

/* ---------- Polecamy ---------- */
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px);
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(12px, 2vw, 28px); }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card__media { position: relative; overflow: hidden; }
.card__media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform .6s var(--ease);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(36, 22, 16, .45); }
  .card:hover .card__media img { transform: scale(1.05); }
}
.card__badge { position: absolute; top: 10px; left: 10px; font-size: 12px; padding: 5px 10px; }
.card__body { padding: clamp(12px, 1.6vw, 20px); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.card__name, .card__price {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 1.8vw, 23px);
  text-transform: uppercase; letter-spacing: 0.02em;
}
.card__price { color: var(--accent); white-space: nowrap; text-transform: none; }
.card__desc { font-size: clamp(14px, 1.2vw, 16px); line-height: 1.45; color: var(--muted); }

/* ---------- Plakietki ---------- */
.pill {
  font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; padding: 4px 9px; border-radius: 999px; line-height: 1.2;
}
.pill--hit { background: var(--accent); }
.pill--new { background: var(--basil); }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1px solid; line-height: 1.2;
}
.tag .icon { stroke-width: 2.2; }
.tag--veg { color: var(--basil); border-color: #A9C29F; }
.tag--hot { color: var(--chili); border-color: #E5B4A6; }

/* ---------- Menu ---------- */
.menu-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.menu-head__intro { flex: 1 1 380px; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(24px, 3vw, 36px) 0 clamp(12px, 2vw, 20px); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; color: var(--ink);
  font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
@media (hover: hover) { .chip:hover { border-color: var(--ink); } }
.chip:active { transform: scale(.97); }
.chip__count { color: var(--muted-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] .chip__count { color: #D8C6B1; }

.menu-list { list-style: none; margin: 0; padding: 0; column-width: 440px; column-gap: 64px; }
.menu-item {
  break-inside: avoid; display: flex; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.menu-item.is-entering { animation: menu-in .45s var(--ease) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.menu-item__num { flex: none; width: 26px; padding-top: 3px; font-family: var(--font-head); font-size: 14px; color: var(--muted-2); }
.menu-item__body { flex: 1; min-width: 0; }
.menu-item__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.menu-item__name {
  font-family: var(--font-head); font-weight: 600; font-size: 20px;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.leader { flex: 1; min-width: 16px; align-self: flex-end; margin-bottom: 7px; border-bottom: 2px dotted var(--line-2); }
.price { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--accent); white-space: nowrap; }
.menu-item__desc { margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.menu-item__desc em { color: var(--ink); }

.extras {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px; margin-top: clamp(36px, 5vw, 56px);
}
.box { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.box__title {
  margin-bottom: 4px; font-family: var(--font-head); font-weight: 700; font-size: 24px;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.box__sub { margin-bottom: 8px; font-size: 15px; color: var(--muted); }
.box-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.box-item:last-child { padding-bottom: 0; border-bottom: 0; }
.box-item__row { display: flex; align-items: center; gap: 10px; }
.box-item__name { font-family: var(--font-head); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: 0.02em; }
.box-item .price { font-size: 19px; }
.box-item__desc { margin-top: 2px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.cta-band {
  margin-top: clamp(36px, 5vw, 56px);
  background: var(--dark); color: var(--on-dark); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
}
.cta-band__text { flex: 1 1 340px; }
.cta-band__kicker { margin-bottom: 6px; font-family: var(--font-script); font-size: 34px; line-height: 1; color: var(--ember); }
.cta-band__text p:last-child { font-size: 18px; line-height: 1.55; color: var(--on-dark-muted); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Wylosuj pizzę ---------- */
.draw { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(28px, 5vw, 72px); }
.draw__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.draw__intro .kicker { margin: 0; }
.draw__intro > p:last-child { max-width: 460px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--on-dark-muted); }

.draw__card {
  flex: 1 1 480px; min-width: 0;
  display: flex; flex-direction: column; gap: 28px;
  background: var(--dark-2); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px);
}
.draw__result { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.draw__label { font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-label); }
.draw__name {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(38px, 5vw, 64px);
  line-height: 1.25; letter-spacing: 0.01em; text-transform: uppercase; color: var(--on-dark);
}
/* czerwony pasek „pędzlem” za nazwą — jak w postach klienta */
.draw__name span {
  padding: 0 .3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath fill='%23B3261E' d='M10 22C60 14 160 10 260 12c60 1 110-2 134 4l-6 14 9 14-11 14 9 14-11 12c-84 6-204 8-294 4-30-1-60 2-82-2l8-14-12-12 10-14-11-12z'/%3E%3C/svg%3E") no-repeat 0 50% / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.draw__desc { max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--on-dark-soft); }
/* cena + „Zamów teraz” — osobno od przycisku „Losuj”, żeby szybkie drugie stuknięcie nie otwierało zamówień */
.draw__buy { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 4px; }
.draw__price { font-family: var(--font-head); font-weight: 600; font-size: 28px; color: var(--ember); }

/* przyciski nad wynikiem — „Losuj” stoi w miejscu, nawet gdy wynik jest dłuższy */
.draw__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid #3A2A21; }
.draw__filters { display: flex; flex-wrap: wrap; gap: 8px; }

.chip--dark { border-color: rgba(244, 236, 223, .3); color: var(--on-dark-muted); }
@media (hover: hover) { .chip--dark:hover { border-color: var(--on-dark); } }
.chip--dark[aria-pressed="true"] { background: var(--on-dark); border-color: var(--on-dark); color: var(--dark); }

/* każde losowanie: wynik wjeżdża raz, pasek rozciąga się od lewej */
.draw__result.is-new { animation: menu-in .45s var(--ease) both; }
.draw__result.is-new .draw__name span { animation: brush-in .6s var(--ease) both; }
@keyframes brush-in { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

/* ---------- O nas ---------- */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 5vw, 72px); }
.about__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about__text .kicker { margin: 0; }
.about__text > p:not(.kicker):not(.about__sign) { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--ink-soft); }
.about__sign { margin-top: 6px; font-family: var(--font-script); font-size: clamp(30px, 3vw, 40px); line-height: 1; }
.about__img { flex: 1 1 340px; min-width: 0; max-width: 520px; }
.about__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius-lg); }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(10px, 1.5vw, 20px); margin-top: clamp(36px, 5vw, 64px);
}
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* ---------- Kontakt ---------- */
.contact { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.contact__info { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row__icon { width: 48px; height: 48px; }
.info-label {
  margin-bottom: 4px; font-weight: 700; font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.info-text { font-size: 18px; line-height: 1.55; }
.info-note { margin-top: 2px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.info-note a { color: var(--ink); font-weight: 600; white-space: nowrap; padding-block: 13px; } /* większe pole dotyku, bez zmiany układu */
.contact__cta { margin: 8px 0 12px; font-size: 14px; }
.contact__img { flex: 1 1 340px; min-width: 0; max-width: 480px; }
.contact__img img {
  width: 100%; height: 100%; min-height: 420px; max-height: 620px;
  object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-lg);
}

/* ---------- Stopka ---------- */
.site-footer { background: var(--darkest); color: var(--on-dark-label); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 40px; padding-block: clamp(32px, 4vw, 48px);
}
.site-footer__brand { display: flex; align-items: center; gap: 16px; line-height: 1.5; font-size: 15px; }
.site-footer__brand img { width: 72px; height: 72px; }
.site-footer__brand a { color: inherit; text-decoration: none; }
.site-footer__tel { padding-block: 13px; } /* większe pole dotyku, bez zmiany układu */
.site-footer__name {
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark);
}
.nav--footer { gap: 0 24px; }
.site-footer__legal { flex-basis: 100%; font-size: 14px; color: #A8927E; }

/* ---------- Kółko „Zamów” z pizzą (tylko telefon) ---------- */
.order-fab { display: none; }

/* ---------- Telefon ---------- */
@media (max-width: 720px) {
  /* logo i „Zamów teraz” w jednym rzędzie, menu jako przewijany pasek pod spodem */
  .site-header__inner { gap: 4px 12px; padding-block: 10px 0; }
  .brand { order: 1; }
  .site-header .btn--sm { order: 2; padding: 0 16px; font-size: 12px; }
  .site-header .nav {
    order: 3; flex-basis: 100%; flex-wrap: nowrap; gap: 22px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .site-header .nav::-webkit-scrollbar { display: none; }
  .site-header .nav a { white-space: nowrap; }
  .brand img { width: 44px; height: 44px; }
  .brand__name { font-size: 26px; }

  /* Z JavaScriptem: nagłówek przyklejony u góry (logo + ☰), linki w menu na cały ekran.
     Bez JS zostaje pasek linków powyżej. */
  .js .site-header { position: sticky; top: 0; z-index: 30; }
  .js .site-header__inner { flex-wrap: nowrap; padding-block: 10px; }
  .js .site-header .nav, .js .site-header .btn--sm { display: none; }
  .js .nav-toggle { display: inline-flex; order: 4; } /* po prawej, pod kciukiem */
  .js main section[id] { scroll-margin-top: 68px; } /* nagłówek nie zasłania tytułu sekcji po kliknięciu linku */

  .js .mnav {
    position: fixed; inset: 0; z-index: 29;
    display: flex; flex-direction: column; gap: 28px;
    padding: 80px max(var(--gutter), env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    background: var(--dark); color: var(--on-dark);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .js .mnav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .3s var(--ease); }
  .nav-open, .nav-open body { overflow: hidden; } /* strona pod menu się nie przewija */

  /* Hero: tekst na całej szerokości, więc przyciemnienie równe w poziomie; przyciski jeden pod drugim */
  .hero__inner { padding-block: 48px 56px; }
  .hero__scrim { background: linear-gradient(180deg, rgba(20, 12, 8, .7) 0%, rgba(20, 12, 8, .52) 45%, rgba(20, 12, 8, .82) 100%); }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .hero__info span { display: block; }
  .hero__info .hero__info-sep { display: none; }

  /* Więcej powietrza na małym ekranie */
  .features__grid { gap: 32px; padding-block: 48px; }
  .section-head { margin-bottom: 32px; }
  .menu-item { padding-block: 18px; }
  .menu-item__desc { margin-top: 6px; }
  .box { padding: 26px 22px; }
  .cta-band { padding: 30px 24px; }
  .gallery { gap: 12px; }
  .contact__info { gap: 36px; }
  .site-footer__inner { gap: 28px; padding-block: 44px; }

  /* Polecamy: cena zawsze na dole karty, równo w obu kolumnach */
  .card__body { padding: 16px 14px 18px; gap: 8px; }
  .card__row { display: contents; }
  .card__price { order: 1; margin-top: auto; padding-top: 4px; }

  /* Filtry menu: równa siatka 2 × 2 */
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .chip { justify-content: center; padding: 0 12px; }

  .cta-band__actions { flex-direction: column; width: 100%; }
  .cta-band__actions .btn { width: 100%; }

  /* Losowanie: filtry w równym rzędzie, „Losuj” na całą szerokość */
  .draw__card { padding: 22px 20px; gap: 22px; }
  .draw__controls { padding-bottom: 22px; }
  .draw__filters { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .draw__filters .chip { padding: 0 4px; font-size: 12px; letter-spacing: 0.06em; }
  .draw__btn { width: 100%; }

  .contact__cta { width: 100%; }

  /* Stopka: telefon w osobnej linii */
  .site-footer__sep { display: none; }
  .site-footer__tel { display: inline-block; }

  /* Kółko z pizzą w prawym dolnym rogu → system zamówień */
  .order-fab {
    position: fixed; z-index: 20;
    right: max(var(--gutter), env(safe-area-inset-right));
    bottom: calc(24px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--ember); color: var(--dark);
    box-shadow: 0 10px 24px -8px rgba(18, 11, 8, .55), 0 0 0 1px rgba(18, 11, 8, .08);
    opacity: 0; visibility: hidden; transform: scale(.85);
    transition: opacity .3s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .order-fab.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s var(--ease); }
  a.order-fab:active { transform: scale(.94); opacity: 1; } /* „a.” — wygrywa z ogólnym a:active */
  .order-fab .icon { stroke-width: 1.7; }
}

@media (max-width: 380px) {
  /* małe telefony bez JS (pasek linków): całe menu bez przewijania */
  .site-header .nav { gap: 14px; letter-spacing: 0.08em; }
}

@media (max-width: 560px) {
  /* cena zawsze w prawym górnym rogu pozycji menu */
  .menu-item__body { position: relative; padding-right: 72px; }
  .menu-item__row .price { position: absolute; top: 1px; right: 0; }
  .menu-item__row .leader { display: none; }
}

/* =========================================================
   Animacje „na pierwszy rzut oka”
   Klasa .js-anim jest dodawana w <head> tylko gdy animacje mają sens.
   .is-loaded dodaje main.js po pierwszej klatce.
   ========================================================= */
.js-anim .site-header[data-anim-header] { opacity: 0; }
.js-anim.is-loaded .site-header[data-anim-header] { opacity: 1; transition: opacity .7s ease-out; }

.js-anim .hero__bg { opacity: .35; transform: scale(1.08); }
.js-anim.is-loaded .hero__bg {
  opacity: 1; transform: none;
  transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-anim [data-hero] { opacity: 0; transform: translateY(22px); }
.js-anim.is-loaded [data-hero] {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js-anim .hero__underline path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js-anim.is-loaded .hero__underline path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .9s cubic-bezier(0.65, 0, 0.35, 1) .75s;
}

.js-anim.is-loaded .hero__cta { animation: cta-glow 1.4s ease-out 1.7s 1; }
@keyframes cta-glow {
  from { box-shadow: 0 0 0 0 rgba(240, 163, 94, .6); }
  to   { box-shadow: 0 0 0 16px rgba(240, 163, 94, 0); }
}

.js-anim [data-reveal] { opacity: 0; transform: translateY(28px); }
.js-anim [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--d, 0ms);
}
/* po zakończeniu wejścia karty wracają do normalnych hoverów */
.js-anim .card[data-reveal].is-done { transition: transform .35s var(--ease), box-shadow .35s var(--ease); transition-delay: 0ms; }
@media (hover: hover) { .js-anim .card[data-reveal].is-done:hover { transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .js-anim [data-reveal], .js-anim [data-hero], .js-anim .site-header[data-anim-header] { opacity: 1 !important; transform: none !important; }
  .order-fab, .mnav, .nav-toggle { display: none !important; }
}
