/* ============================================================
   Stara Osada – style
   ============================================================ */
:root {
  --olive: #54643D;        /* dokładny kolor tła logo */
  --olive-deep: #3B4729;
  --olive-soft: #6E7F51;
  --gold: #A29A51;         /* ornament z logo */
  --gold-light: #C9C185;
  --paper: #F1EEE3;
  --paper-deep: #E6E1D1;
  --ink: #26291C;
  --ink-soft: #5A5E4C;
  --white: #FBFCF6;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-variation-settings: "opsz" 144, "SOFT" 40; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
section[id] { scroll-margin-top: 84px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-light { background: var(--white); color: var(--olive-deep); }
.btn-light:hover { background: var(--gold-light); }
.btn-ghost { color: var(--white); border-color: rgba(251,252,246,.5); }
.btn-ghost:hover { border-color: var(--white); background: rgba(251,252,246,.08); }
.btn-olive { background: var(--olive); color: var(--white); }
.btn-olive:hover { background: var(--olive-deep); }

/* ---------- Pasek u góry ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gutter);
  background: var(--olive);
  color: var(--white);
  transition: box-shadow .2s;
}
.top.scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.15), 0 8px 24px rgba(38,41,28,.18); }
.top-brand img { width: auto; height: 46px; mix-blend-mode: lighten; }
.top-nav { display: flex; gap: 28px; margin-left: auto; }
.top-nav a, .top-call, .top-lang { text-decoration: none; font-weight: 500; opacity: .92; }
.top-lang { font-size: .85rem; letter-spacing: .04em; border-bottom: 1.5px solid var(--gold-light); padding-bottom: 2px; }
.top-lang:hover { opacity: 1; }
.top-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold-light); }
.top-call { border: 1.5px solid var(--gold-light); color: var(--white); padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.top-call:hover { background: var(--gold-light); color: var(--olive-deep); }
.top-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.top-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.top-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.top-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.top-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; inset: 84px 0 0; z-index: 49; background: var(--olive-deep); padding: 24px var(--gutter); flex-direction: column; gap: 4px; }
.mobile-nav a { color: var(--white); text-decoration: none; font-family: var(--font-display); font-size: 1.75rem; padding: 12px 0; border-bottom: 1px solid rgba(251,252,246,.12); }
.mobile-nav a:nth-last-child(-n+2) { border: 0; font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--gold-light); }
.mobile-nav a:nth-last-child(2) { margin-top: 16px; }

@media (max-width: 820px) {
  .top-nav, .top-call, .top-lang { display: none; }
  .top-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--olive);
  color: var(--white);
  text-align: center;
  padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* delikatna winieta, żeby logo „siedziało” w tle */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 35%, rgba(255,255,255,.05), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero-logo {
  width: min(88vw, 760px); height: auto;
  margin: clamp(24px, 5vw, 56px) auto 0;
  mix-blend-mode: lighten; /* JPEG ma to samo olive w tle – blend usuwa kwadrat */
}
.hero-tag {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 60;
  margin: 28px auto 12px;
  max-width: 28ch;
}
.hero-where { opacity: .85; margin-bottom: 22px; }
.hero-status {
  display: inline-block;
  margin: 0 auto 28px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  font-size: .95rem; font-weight: 500;
}
.hero-status::before, .hours-status::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 10px; vertical-align: 0; background: var(--gold-light);
}
.hero-status[data-open="true"]::before, .hours-status[data-open="true"]::before { background: #9CD47A; box-shadow: 0 0 0 4px rgba(156,212,122,.25); }
.hero-status:empty { display: none; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- O nas ---------- */
.about { padding: clamp(56px, 8vw, 110px) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-text h2 { margin-bottom: 22px; }
.about-text .lead { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; font-variation-settings: "opsz" 48; color: var(--olive-deep); }
.about-text p { max-width: 60ch; }
.about-facts { display: grid; gap: 0; border-top: 1.5px solid var(--olive); margin-top: 14px; }
.about-facts div { padding: 18px 0; border-bottom: 1px solid var(--paper-deep); }
.about-facts strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--olive-deep); }
.about-facts span { color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Karta ---------- */
.menu { padding: 0 0 clamp(56px, 8vw, 110px); }
.card {
  background: var(--white);
  border: 1px solid var(--paper-deep);
  box-shadow: 0 1px 0 var(--paper-deep), 0 24px 48px -32px rgba(38,41,28,.35);
  padding: clamp(32px, 6vw, 72px) clamp(20px, 6vw, 80px);
  position: relative;
}
.card::before, .card::after {
  /* dwie cienkie linie jak pod napisem RESTAURACJA w logo */
  content: ""; display: block; height: 0; border-top: 1.5px solid var(--gold); border-bottom: 1px solid var(--gold);
  padding-top: 3px; width: min(100%, 220px); margin: 0 auto;
}
.card::before { margin-bottom: 28px; }
.card::after { margin-top: 28px; }
.card h2 { text-align: center; }
.card-note { text-align: center; color: var(--ink-soft); max-width: 46ch; margin: 10px auto 40px; }
.card-note a { color: var(--olive); }
.card-cols { columns: 2; column-gap: clamp(32px, 6vw, 72px); }
.card-cat { break-inside: avoid; margin-bottom: 36px; }
.card-cat h3 { color: var(--olive); margin-bottom: 14px; font-style: italic; font-weight: 400; }
.card-cat ul { list-style: none; margin: 0; padding: 0; }
.card-cat li { margin-bottom: 14px; }
.dish { display: flex; align-items: baseline; gap: 8px; }
.dish-name { font-weight: 600; }
.dish::after { content: ""; flex: 1; order: 1; border-bottom: 1px dotted var(--gold); margin-bottom: .35em; min-width: 24px; }
.dish .price { order: 2; font-family: var(--font-display); font-weight: 500; white-space: nowrap; }
.dish:not(:has(.price))::after { display: none; }
.dish-desc { margin: 2px 0 0; color: var(--ink-soft); font-size: .93rem; }
.card-foot { text-align: center; color: var(--ink-soft); font-size: .9rem; margin: 8px 0 0; }
@media (max-width: 720px) { .card-cols { columns: 1; } }

/* ---------- Galeria ---------- */
.gallery { padding: 0 0 clamp(56px, 8vw, 110px); }
.gallery h2 { margin-bottom: 32px; }
.gallery-group { margin-bottom: 44px; }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.gallery-head h3 { color: var(--olive-deep); }
.gallery-head p { color: var(--ink-soft); margin: 2px 0 0; }
.strip-nav { display: flex; gap: 8px; flex: 0 0 auto; }
.strip-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--olive); background: transparent; color: var(--olive); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, opacity .2s; }
.strip-nav button:hover { background: var(--olive); color: var(--white); }
.strip-nav button:disabled { opacity: .3; cursor: default; background: transparent; color: var(--olive); }
.strip {
  display: flex; gap: 10px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 6px; outline-offset: 6px;
}
.strip::-webkit-scrollbar { display: none; }
.strip figure { flex: 0 0 auto; margin: 0; height: clamp(220px, 30vw, 400px); scroll-snap-align: start; background: var(--paper-deep); overflow: hidden; position: relative; }
.strip img { height: 100%; width: auto; max-width: 86vw; object-fit: cover; display: block; cursor: zoom-in; }
.strip .missing {
  width: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(84,100,61,.06) 14px 15px),
    var(--paper-deep);
  border: 1px dashed rgba(84,100,61,.35);
  color: var(--olive-deep);
}
.strip .missing span { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; line-height: 1.3; }
.strip .missing small { color: var(--ink-soft); font-size: .78rem; margin-top: 4px; }
@media (max-width: 640px) {
  .gallery-head { align-items: flex-start; }
  .strip-nav { display: none; }
}

#lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(38,41,28,.94); display: none; place-items: center; padding: 24px; }
#lightbox.open { display: grid; }
#lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
#lightbox p { color: var(--white); margin: 14px 0 0; text-align: center; }
#lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
#lightbox .lb-close { top: 16px; right: 16px; font-size: 28px; line-height: 1; }
#lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
#lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
#lightbox .lb-count { position: absolute; top: 28px; left: 24px; color: var(--white); opacity: .7; font-size: .9rem; }
@media (max-width: 640px) { #lightbox .lb-prev, #lightbox .lb-next { top: auto; bottom: 16px; transform: none; } }

/* ---------- Opinie ---------- */
.reviews { padding: 0 0 clamp(56px, 8vw, 110px); }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.reviews-head h2 { margin-bottom: 8px; }
.reviews-head p { color: var(--ink-soft); margin: 0; max-width: 44ch; }
.rating-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--paper-deep);
  text-decoration: none; color: var(--ink); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.badge:hover { border-color: var(--olive); box-shadow: 0 6px 18px -10px rgba(38,41,28,.4); }
.badge svg { width: 18px; height: 18px; flex: 0 0 auto; }
.badge strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--olive-deep); }
.badge .stars { color: var(--gold); letter-spacing: 1px; }
.badge span.meta { color: var(--ink-soft); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review {
  background: var(--white); border: 1px solid var(--paper-deep);
  padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px;
  border-top: 3px solid var(--gold);
}
.review .stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; }
.review blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.45; font-variation-settings: "opsz" 24, "SOFT" 50; color: var(--ink); flex: 1; }
.review footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); }
.review footer strong { color: var(--ink); font-weight: 600; }
.review footer .src { display: inline-flex; align-items: center; gap: 6px; }
.review footer .src svg { width: 14px; height: 14px; }
.reviews-cta { margin: 22px 0 0; color: var(--ink-soft); }
.reviews-cta a { color: var(--olive); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 3px; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- Godziny ---------- */
.hours { background: var(--olive); color: var(--white); padding: clamp(56px, 8vw, 110px) 0; }
.hours-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hours h2 { margin-bottom: 18px; }
.hours p { opacity: .9; max-width: 42ch; }
.hours-status { display: inline-block; font-weight: 500; opacity: 1; background: rgba(0,0,0,.18); padding: 8px 16px 8px 12px; border-radius: 999px; }
.hours-status:empty { display: none; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
.hours-table th, .hours-table td { padding: 12px 0; border-bottom: 1px solid rgba(251,252,246,.18); text-align: left; font-weight: 400; }
.hours-table td { text-align: right; font-family: var(--font-display); font-size: 1.2rem; }
.hours-table .today th, .hours-table .today td { color: var(--gold-light); font-weight: 600; }
.hours-table .today th::before { content: "▸ "; }
@media (max-width: 820px) { .hours-grid { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { padding: clamp(56px, 8vw, 110px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact h2 { margin-bottom: 22px; }
address { font-style: normal; }
address p { margin-bottom: 18px; }
address a { color: var(--olive-deep); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.contact-map { aspect-ratio: 4 / 3; background: var(--paper-deep); }
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.75) sepia(.12); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Stopka ---------- */
.foot { background: var(--olive-deep); color: var(--white); padding: 40px 0; text-align: center; }
.foot img { width: 220px; height: auto; margin: 0 auto 16px; mix-blend-mode: lighten; opacity: .9; }
.foot p { margin: 0 0 6px; opacity: .9; }
.foot a { text-decoration: none; }
.foot-small { font-size: .85rem; opacity: .6; }
