/* Bar Świder — jesienna, naturalna taśma; kolory z logo: bordo, złoto, czerń, zieleń */
:root {
  --papier: #f7efe3; --papier2: #efe3d0; --karta: #fffaf2; --tekst: #2b1d14; --szary: #5a4637;
  --bordo: #7a1f24; --zloto: #c9a24a; --rdza: #9a4520; --zielen: #2f4a36; --linia: #e2d3bc;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #1d1512; --papier2: #251b16; --karta: #2a1f19; --tekst: #f3e8da; --szary: #c3ad99;
    --bordo: #d4606a; --zloto: #d9b764; --rdza: #e0885b; --zielen: #8fbf98; --linia: #3e2f26;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--tekst); font: 17px/1.55 Nunito, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--bordo); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--karta); padding: 8px 12px; z-index: 10; }
h2 { font-family: Caveat, cursive; font-weight: 700; font-size: clamp(38px, 6vw, 56px); line-height: 1; margin: 0 0 18px;
     color: var(--bordo); text-align: center; }

/* ---------- powitanie ---------- */
.hero { position: relative; overflow: hidden; text-align: center; padding: 40px 16px 44px;
        background: var(--karta); }
.hero .logo { width: clamp(140px, 22vw, 200px); height: auto; margin: 0 auto 10px; filter: drop-shadow(0 6px 14px rgba(60, 30, 10, .18)); }
.powitanie { font-family: Caveat, cursive; font-weight: 700; font-size: clamp(34px, 6.4vw, 60px); line-height: 1.05;
             color: var(--bordo); margin: 6px auto 12px; max-width: 22ch; }
.zaproszenie { font-size: clamp(17px, 2.2vw, 20px); max-width: 34ch; margin: 0 auto 10px; }
.gdzie-krotko { color: var(--szary); font-weight: 700; letter-spacing: .04em; margin: 0 0 22px; font-size: 15px; }
.guzik { display: inline-block; background: var(--bordo); color: #fff8ee; text-decoration: none; font-weight: 800;
         padding: 13px 26px; border-radius: 999px; box-shadow: 0 4px 0 #4f1215; }
.guzik:hover, .guzik:focus-visible { transform: translateY(1px); box-shadow: 0 3px 0 #4f1215; }
.guzik.jasny { background: var(--zielen); box-shadow: 0 4px 0 #1b2c20; }
.lisc { position: absolute; width: 90px; height: 90px; pointer-events: none; }
@media (max-width: 700px) { .lisc { width: 58px; height: 58px; } .lisc.tylko-duze { display: none; } }

/* ---------- menu ---------- */
.menu { max-width: 1100px; margin: 0 auto; padding: 36px 16px 20px; }
.data { text-align: center; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: 14px;
        color: var(--rdza); margin: 0 0 4px; }
.dzialy { columns: 2 420px; column-gap: 26px; }
.dzial { break-inside: avoid; background: var(--karta); border: 1px solid var(--linia); border-radius: 16px;
         padding: 18px 20px 14px; margin: 0 0 26px; box-shadow: 0 2px 0 var(--linia); }
.dzial h3 { margin: 0 0 10px; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--zielen);
            border-bottom: 2px dashed var(--zloto); padding-bottom: 8px; }
.dzial ul { list-style: none; margin: 0; padding: 0; }
.dzial li { padding: 8px 0; border-bottom: 1px solid var(--linia); }
.dzial li:last-child { border-bottom: 0; }
.pozycja { display: flex; align-items: baseline; gap: 8px; font-weight: 800; }
.nazwa { flex: 0 1 auto; }
.kropki { flex: 1 1 auto; border-bottom: 2px dotted var(--zloto); transform: translateY(-4px); min-width: 16px; }
.cena { flex: none; color: var(--bordo); font-weight: 800; white-space: nowrap; }
.opis { display: block; color: var(--szary); font-size: 15px; }
.notka { margin: 10px 0 2px; font-family: Caveat, cursive; font-size: 24px; color: var(--rdza); line-height: 1.1; }
.smacznego { text-align: center; font-family: Caveat, cursive; font-size: 40px; color: var(--bordo); margin: 0 0 10px; }

/* ---------- galeria ---------- */
.galeria { max-width: 1200px; margin: 0 auto; padding: 30px 16px; }
.kafle { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kafle figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--papier2); aspect-ratio: 4 / 3; }
.kafle img { width: 100%; height: 100%; object-fit: cover; }
.kafle figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 600px) { .kafle figure:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; } }

/* ---------- dojazd, instagram, stopka ---------- */
.dojazd, .insta { text-align: center; padding: 30px 16px; max-width: 760px; margin: 0 auto; }
.insta { padding-bottom: 44px; }
footer { background: var(--bordo); color: #fbeedd; text-align: center; padding: 26px 16px; }
footer img { margin: 0 auto 8px; }
footer p { margin: 0; font-weight: 700; font-size: 15px; }
/* liście pod tekstem (czytelność i kontrast, audyt Świętosławy) */
.hero > :not(.lisc) { position: relative; z-index: 1; }
.lisc { z-index: 0; }
.pdf { text-align: center; margin: 0 0 8px; font-weight: 700; }
.godziny { font-weight: 800; color: var(--zielen); margin: -14px 0 22px; font-size: 16px; }
.kafle figure.film { grid-row: span 2; aspect-ratio: auto; }
.kafle video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 600px) { .kafle figure.film { grid-row: auto; aspect-ratio: 9 / 16; } }

/* ---------- wersja „obfita w grafikę” (Varna 30.09.2026) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 30px;
        max-width: 1200px; margin: 0 auto; text-align: left; padding: 48px 24px 56px; background: none; }
.hero-tekst { text-align: center; }
.hero-film { margin: 0; justify-self: center; width: min(360px, 100%); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden;
             transform: rotate(2.5deg); box-shadow: 0 18px 40px rgba(60, 25, 10, .28); border: 8px solid var(--karta); }
.hero-film video, .hero-tlo { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-tlo { display: none; }
body > header.hero { background: radial-gradient(ellipse at 20% 10%, var(--karta), transparent 60%); max-width: none; }
body > header.hero > * { max-width: 100%; }
.polaroidy { position: relative; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 26px 16px 34px;
             background: var(--papier2); }
.sznurek { position: absolute; left: 0; right: 0; top: 30px; border-top: 2px solid #8a6a4a; opacity: .5; }
.polaroidy figure { margin: 0; background: #fffdf8; padding: 10px 10px 34px; box-shadow: 0 8px 18px rgba(60, 30, 10, .18);
                    transform: rotate(var(--r)); width: 200px; position: relative; }
.polaroidy figure::before { content: ""; position: absolute; top: -8px; left: 50%; width: 14px; height: 24px; margin-left: -7px;
                            background: var(--rdza); border-radius: 3px; }
.polaroidy img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.wstawka { break-inside: avoid; margin: 0 0 26px; border-radius: 16px; overflow: hidden; border: 6px solid var(--karta);
           box-shadow: 0 6px 16px rgba(60, 30, 10, .16); }
.wstawka img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 820px) {
  body > header.hero { display: block; position: relative; min-height: 92vh; padding: 36px 18px; color: #fff8ee; }
  .hero-film { display: none; }
  .hero-tlo { display: block; position: absolute; inset: 0; z-index: 0; }
  body > header.hero::after { content: ""; position: absolute; inset: 0; z-index: 0;
                              background: linear-gradient(180deg, rgba(30, 12, 8, .55), rgba(30, 12, 8, .75)); }
  .hero-tekst { position: relative; z-index: 1; padding-top: 4vh; }
  .hero .powitanie { color: #fff3e2; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
  .hero .zaproszenie, .hero .gdzie-krotko, .hero .godziny { color: #fbeedd; }
  .hero .lisc { z-index: 1; }
  .polaroidy figure { width: 42%; }
}

/* ---------- karta menu jak A4 wysłane Agacie 30.09 ---------- */
.menu { max-width: 1040px; }
.karta { position: relative; background: #f6ecdd; color: #2a1c14; border: 1.5px solid #2f5d3a; outline: 1px solid #2f5d3a;
         outline-offset: -9px; padding: 42px clamp(18px, 5vw, 64px) 34px; box-shadow: 0 14px 36px rgba(60, 30, 10, .18); }
.galazka { position: absolute; width: clamp(90px, 14vw, 150px); height: auto; pointer-events: none; }
.galazka.lg { left: 6px; top: 6px; }
.galazka.pd { right: 6px; bottom: 6px; transform: rotate(180deg); }
.karta-logo { margin: 0 auto 8px; width: 96px; height: 96px; }
.karta-bar { text-align: center; font-family: "Josefin Sans", sans-serif; letter-spacing: .28em; text-transform: uppercase;
             color: #2f5d3a; font-size: 14px; margin: 0; }
.karta-tytul { font-family: Caveat, cursive; font-weight: 600; font-size: 30px; color: #a8481f; margin: 2px 0 0; }
.karta .data { color: #6b5443; margin: 0 0 26px; }
.karta-kolumny { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.karta .dzial { background: none; border: 0; box-shadow: none; padding: 0; margin: 0 0 28px; border-radius: 0; }
.karta .dzial h3 { display: flex; align-items: center; gap: 14px; font-family: "Josefin Sans", sans-serif; font-weight: 600;
                   color: #9e1330; letter-spacing: .24em; font-size: 16px; border: 0; padding: 0; margin: 0 0 12px; }
.karta .dzial h3::after { content: ""; flex: 1; border-top: 1px solid #c9a24a; }
.karta .dzial li { border: 0; padding: 6px 0; }
.karta .pozycja { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 20px; }
.karta .kropki { border-bottom: 1px dotted #b9a58a; }
.karta .cena { color: #9e1330; }
.karta .opis { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 16.5px; color: #5d4a3c; }
.karta .notka { font-family: Caveat, cursive; color: #2f5d3a; font-size: 24px; font-weight: 600; }
.karta-stopka { text-align: center; font-family: "Josefin Sans", sans-serif; letter-spacing: .26em; text-transform: uppercase;
                color: #2f5d3a; font-size: 13px; margin: 10px 0 0; }
.pdf { margin-top: 16px; }
@media (max-width: 760px) { .karta-kolumny { grid-template-columns: 1fr; } .karta { padding-top: 64px; } }
@media (prefers-color-scheme: dark) { .karta { color: #2a1c14; } }
@media (max-width: 820px) {
  /* filmik jako tło powitania na telefonie (silniejsza reguła niż .hero > :not(.lisc)) */
  body > header.hero > video.hero-tlo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; object-fit: cover; }
  body > header.hero::after { z-index: 0; }
  body > header.hero > .hero-tekst { position: relative; z-index: 2; }
  body > header.hero > .lisc { z-index: 1; }
}
/* audyt Świętosławy (wersja live): jednolite tło powitania, gałązka pod tekstem i poza cenami */
body > header.hero { background: var(--karta); }
.karta > :not(.galazka) { position: relative; z-index: 1; }
.galazka { z-index: 0; opacity: .9; }
.galazka.pd { right: -10px; bottom: -14px; }
.karta { padding-bottom: 48px; }
.galazka.pd { width: clamp(70px, 9vw, 100px); right: -22px; bottom: -22px; } .karta { padding-bottom: 60px; }
