/* ════════════════════════════════════════════════
   ZOLI — Pizzeria & Pasta, Żoliborz
   Emil Kowalski-inspired: minimal, typographic,
   restrained motion, warm editorial palette.
   ════════════════════════════════════════════════ */

:root {
  --red: #C42B2B;
  --red-deep: #A31F1F;
  --green: #23663F;
  --ink: #1C1614;
  --ink-soft: #5C524D;
  --cream: #FAF6F0;
  --cream-deep: #F3ECE2;
  --line: #E5DCCF;
  --white: #FFFFFF;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;

  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;

  --container: 72rem;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

::selection { background: var(--red); color: var(--white); }

a { color: inherit; }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ─── Typography ─── */

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

h1, h2 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 520;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }

h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 440;
  letter-spacing: -0.01em;
  color: var(--red);
}

/* tricolore: zielone akcenty jak na papierowej karcie Zoli */
h1 em.em-green, h2 em.em-green { color: var(--green); }

.overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-2);
}

.muted { color: var(--ink-soft); font-size: 0.9rem; }

/* ─── Reveal animations (Emil Kowalski style: fade + rise + de-blur) ─── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.d-1 { transition-delay: 0.08s; }
.d-2 { transition-delay: 0.16s; }
.d-3 { transition-delay: 0.24s; }
.d-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .ticker__track { animation: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-deep); }

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

.btn--nav {
  background: var(--ink);
  color: var(--cream);
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.btn--nav:hover { background: var(--red); }

.nav__cta { display: flex; align-items: center; gap: 0.5rem; }

.btn--icon {
  width: 44px;
  min-width: 44px;
  padding: 0;
  justify-content: center;
}

.btn--icon .ihb__base { transform: none; gap: 0; }

/* ─── Interactive hover button (magicui port) ─── */

.ihb { position: relative; overflow: hidden; }

.ihb__base {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(2px);
  transition: transform 0.3s var(--ease-io), opacity 0.3s var(--ease-io);
}

.ihb__hover {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--white);
  opacity: 0;
  transform: translateX(3rem);
  transition: transform 0.3s var(--ease-io), opacity 0.3s var(--ease-io);
}

.ihb__dot {
  position: absolute;
  left: 20%;
  top: 40%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--red);
  transform: scale(0);
  transition: transform 0.35s var(--ease-io);
}

.ihb:hover .ihb__base,
.ihb:focus-visible .ihb__base { transform: translateX(3rem); opacity: 0; }

.ihb:hover .ihb__hover,
.ihb:focus-visible .ihb__hover { transform: translateX(-0.25rem); opacity: 1; }

.ihb:hover .ihb__dot,
.ihb:focus-visible .ihb__dot { transform: scale(80); }

/* variant fills + neutralize old instant hover backgrounds */
.btn--primary .ihb__dot { background: var(--red-deep); }
.btn--primary.ihb:hover { background: var(--red); }
.btn--ghost.ihb:hover { border-color: var(--red); }
.btn--nav.ihb:hover { background: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .ihb__base, .ihb__hover, .ihb__dot { transition: none; }
}

/* ─── Nav ─── */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}

.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.logo-mark { height: 30px; width: auto; color: var(--red); }

.nav__logo { display: flex; transition: opacity 0.2s var(--ease-out); }
.nav__logo:hover { opacity: 0.75; }

.nav__links { display: flex; gap: 1.75rem; }

.nav__links a {
  font-size: 0.9rem;
  font-weight: 450;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease-out);
}

.nav__links a:hover { color: var(--ink); }

/* ─── Hero ─── */

.hero { padding: calc(var(--space-6) + 3rem) 0 var(--space-5); }

.hero__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__lead {
  margin-top: var(--space-3);
  max-width: 34rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.hero__actions {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__meta { margin-top: var(--space-4); }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.rating svg { color: var(--red); flex-shrink: 0; }
.rating strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-deep);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Photo fallback (shown when photo file missing) ─── */

.photo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(-45deg, transparent 0 22px, rgba(196, 43, 43, 0.05) 22px 44px),
    var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo-fallback span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--red);
  opacity: 0.65;
}

figure.is-missing img { display: none; }
figure.is-missing .photo-fallback { display: flex; }

/* ─── Ticker ─── */

.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 0.9rem 0;
  background: var(--white);
}

.ticker__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: ticker 36s linear infinite;
}

.ticker__track span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  white-space: nowrap;
}

.ticker__track i { color: var(--red); font-style: normal; }
.ticker__track i:nth-of-type(even) { color: var(--green); }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ─── Sections ─── */

.section { padding: var(--space-6) 0; }

.section__head { max-width: 40rem; margin-bottom: var(--space-5); }

.section__lead { margin-top: var(--space-3); color: var(--ink-soft); }

/* ─── Menu ─── */

.menu { background: var(--white); border-bottom: 1px solid var(--line); }

.menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.menu__cat {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-3);
}

.menu__list { list-style: none; display: grid; gap: var(--space-3); }

/* strona główna: środkowa kategoria (Pasta) w zieleni */
.menu__col:nth-child(2) .menu__cat { color: var(--green); border-bottom-color: color-mix(in srgb, var(--green) 30%, transparent); }

.menu__row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.menu__name { font-weight: 500; letter-spacing: -0.01em; }

.menu__dots {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
}

.menu__price {
  font-variant-numeric: tabular-nums;
  font-weight: 450;
  color: var(--ink);
  white-space: nowrap;
}

.menu__desc {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
  max-width: 26rem;
}

.tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 35%, transparent);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  vertical-align: 0.15em;
  margin-left: 0.35rem;
}

.promo {
  margin-top: var(--space-4);
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.promo__day {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.promo__offer {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.15;
  margin-top: 0.4rem;
}

.promo__note {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  opacity: 0.92;
}

.swipe-hint {
  display: none;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

.menu__footnote {
  margin-top: var(--space-5);
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}

/* ─── About ─── */

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.about__text p + p { margin-top: var(--space-2); }
.about__text h2 { margin-bottom: var(--space-3); }
.about__text > p { color: var(--ink-soft); max-width: 32rem; }

.about__quote {
  margin-top: var(--space-4);
  border-left: 2px solid var(--red);
  padding-left: var(--space-3);
}

.about__quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--ink);
}

.about__quote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.about__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.ph {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-deep);
}

.ph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.ph:hover img { transform: scale(1.03); }

/* ─── Contact ─── */

.contact { background: var(--white); border-top: 1px solid var(--line); }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.contact__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  background: var(--cream);
}

.contact__card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-2);
}

.contact__card p + p { margin-top: 0.5rem; }

.contact__tel {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s var(--ease-out);
}

.contact__tel:hover { color: var(--red); }

.link {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.link:hover { color: var(--red); border-bottom-color: var(--red); }

/* ─── Menu page (menu.html) ─── */

.subnav {
  position: sticky;
  top: 59px;
  z-index: 90;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  margin-top: 59px;
}

.subnav__track {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.subnav__track::-webkit-scrollbar { display: none; }

.subnav__track a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 1.05rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  white-space: nowrap;
}

.subnav__track a:hover { color: var(--ink); }
.subnav__track a.is-active { color: var(--red); border-bottom-color: var(--red); }

.page-menu { padding-bottom: var(--space-5); }

/* Long page: instant anchor jumps instead of seconds-long smooth glide */
html:has(.page-menu) { scroll-behavior: auto; }

.page-head { padding: var(--space-5) clamp(1.25rem, 4vw, 2.5rem) var(--space-4); }

.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }

.page-head h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.page-head__lead {
  margin-top: var(--space-2);
  max-width: 36rem;
  color: var(--ink-soft);
}

.legend {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.legend__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend__note { opacity: 0.8; }

.ic { flex-shrink: 0; vertical-align: -0.08em; }
.ic--veg { color: var(--green); }
.ic--hot { color: var(--red); }

.menu__name .ic { margin-left: 0.15rem; }
.menu__name--sub { font-weight: 400; color: var(--ink-soft); }

.mcat { scroll-margin-top: 2rem; padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.mcat:first-of-type { border-top: 0; }

.mcat__grid {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.mcat__grid--sub { margin-top: var(--space-4); }

.mcat__side { position: sticky; top: 8.5rem; }

.mcat__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.mcat__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

/* naprzemienne kolory kategorii — jak w papierowej karcie Zoli */
.mcat:nth-of-type(odd) .mcat__title,
.mcat:nth-of-type(odd) .mcat__title em { color: var(--red); }
.mcat:nth-of-type(even) .mcat__title,
.mcat:nth-of-type(even) .mcat__title em { color: var(--green); }

.mcat__aside {
  margin-top: var(--space-2);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 13rem;
}

.promo--wide { margin-top: var(--space-4); }

@media (max-width: 900px) {
  .mcat__grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .mcat__side { position: static; }
  .mcat__aside { max-width: 30rem; }
  .subnav { top: 55px; margin-top: 55px; }
}

/* ─── Modal rezerwacji ─── */

.rsv {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 25rem;
  width: calc(100% - 2.5rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  margin: auto;
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), filter 0.35s var(--ease-out);
}

@starting-style {
  .rsv[open] {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    filter: blur(6px);
  }
}

.rsv::backdrop {
  background: rgba(28, 22, 20, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity 0.35s var(--ease-out);
}

@starting-style {
  .rsv[open]::backdrop { opacity: 0; }
}

.rsv__card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-4) var(--space-4) var(--space-3);
}

.rsv__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.rsv__close:hover { background: var(--cream-deep); color: var(--ink); }

.rsv__title {
  font-size: 1.8rem;
  margin-top: 0.1rem;
}

.rsv__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.rsv__note {
  margin-top: var(--space-1);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.rsv__rows { margin-top: var(--space-3); }

.rsv__row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0.25rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s var(--ease-out);
}

.rsv__row svg { color: var(--red); flex-shrink: 0; }

.rsv__row span { display: grid; gap: 0.05rem; }

.rsv__row small {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.rsv__row strong {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.rsv__row:hover strong { color: var(--red); }

/* ─── Date picker (HeroUI port, Zoli tokens) ─── */

.rsv__form { margin-top: var(--space-3); }

.dp { position: relative; display: flex; flex-direction: column; gap: 0.3rem; }

.dp__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
}

.dp__group {
  display: inline-flex;
  align-items: center;
  width: 100%;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: border-color 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out);
}

.dp__group:hover { border-color: color-mix(in srgb, var(--ink) 32%, transparent); }

.dp__group:focus-visible,
.dp__group:focus-within {
  outline: none;
  border-color: color-mix(in srgb, var(--red) 55%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 22%, transparent);
}

.dp__group[data-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 18%, transparent);
}

.dp__input {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 1px;
  padding: 0.5rem 0.5rem 0.5rem 0.8rem;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.dp__seg { padding: 0 0.125rem; border-radius: 0.375rem; }
.dp__seg[data-placeholder="true"] { color: var(--ink-soft); }
.dp__lit { color: var(--ink-soft); }

.dp__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  border-radius: 0.75rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.16s var(--ease-out), background-color 0.16s var(--ease-out), transform 0.12s var(--ease-out);
}

.dp__trigger:hover { color: var(--ink); background: var(--cream-deep); }
.dp__trigger:active { transform: scale(0.96); }

.dp__popover {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  border-radius: 1.1rem;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(28, 22, 20, 0.16), 0 2px 8px rgba(28, 22, 20, 0.08);
  padding: 0.75rem;
  transform-origin: top;
  opacity: 1;
  transform: none;
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

@starting-style {
  .dp__popover:not([hidden]) { opacity: 0; transform: translateY(-4px) scale(0.98); }
}

.dp__cal-head {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.25rem 0.5rem;
}

.dp__cal-title {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.dp__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.14s var(--ease-out), opacity 0.14s var(--ease-out);
}

.dp__nav:first-of-type { margin-left: auto; }
.dp__nav:hover { background: var(--cream-deep); }
.dp__nav:disabled { opacity: 0.35; cursor: default; background: transparent; }

.dp__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.125rem 0;
  justify-items: center;
}

.dp__wd {
  width: 2.25rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.dp__day {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.14s var(--ease-out), color 0.14s var(--ease-out), transform 0.12s var(--ease-out);
}

.dp__day:hover { background: var(--cream-deep); }
.dp__day:active { transform: scale(0.95); }
.dp__day[data-today="true"] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 55%, transparent); }
.dp__day[data-selected="true"] { background: var(--red); color: var(--white); font-weight: 500; }
.dp__day[data-selected="true"]:hover { background: var(--red-deep); }
.dp__day:disabled { color: color-mix(in srgb, var(--ink-soft) 45%, transparent); cursor: default; background: transparent; }

.rsv__form-row {
  margin-top: var(--space-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.rsv__select {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  height: 2.75rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out);
}

.rsv__select:hover { border-color: color-mix(in srgb, var(--ink) 32%, transparent); }
.rsv__select:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--red) 55%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 22%, transparent);
}

.rsv__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}

.rsv__form-hint {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--red);
}

.rsv__hours {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

body:has(.rsv[open]) { overflow: hidden; }

/* ─── Footer ─── */

.footer {
  padding: var(--space-6) 0 var(--space-5);
  background: var(--ink);
  color: var(--cream);
}

.footer__inner { display: grid; gap: var(--space-2); justify-items: start; }

.footer__sign {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 440;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: var(--space-4);
}

.footer__sign em { color: #E2574F; font-style: italic; } /* jaśniejsza czerwień: kontrast na atramencie */

.footer__logo { height: 38px; color: var(--white); margin-top: var(--space-2); }

.footer a { color: inherit; text-underline-offset: 3px; }

.footer .muted { color: color-mix(in srgb, var(--cream) 55%, transparent); }

/* ─── Responsive ─── */

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 30rem; }
  .menu__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .btn--nav span { font-size: 0.8rem; }

  /* krótszy pion: mniejsze odstępy, niższe hero */
  .hero { padding: 5.5rem 0 2.5rem; }
  .hero__media { max-width: none; aspect-ratio: 4 / 3; }
  .hero__actions { margin-top: var(--space-3); }
  .hero__meta { margin-top: var(--space-3); }
  .section { padding: 3.25rem 0; }
  .section__head { margin-bottom: var(--space-3); }
  .menu__footnote { margin-top: var(--space-3); }

  /* hity z menu → pozioma karuzela ze snapem */
  .menu__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.9rem;
    margin-inline: -1.25rem;
    padding: 0.25rem 1.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .menu__grid::-webkit-scrollbar { display: none; }
  .menu__col {
    flex: 0 0 84%;
    scroll-snap-align: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.1rem;
    background: var(--white);
  }
  .promo { margin-top: var(--space-3); }
  .swipe-hint { display: block; }

  /* galeria → poziomy pas zdjęć ze snapem */
  .about__gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .about__gallery::-webkit-scrollbar { display: none; }
  .ph, .ph:first-child { flex: 0 0 80%; grid-column: auto; aspect-ratio: 4 / 3; }

  /* strona menu: ciaśniejszy rytm */
  .page-head { padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem; }
  .mcat { padding: 2rem 0; }
  .mcat__grid--sub { margin-top: var(--space-3); }
  .menu__list { gap: 1.1rem; }
}
