:root {
  --bg: #efe2cc;        /* piaskowy / chlebowy */
  --paper: #fbf4e8;
  --paper-2: #f3e6d1;
  --ink: #2b2118;
  --muted: #6e5b47;
  --gold: #c08a3e;
  --gold-dark: #9c6a2a;
  --line: #e0cdb0;
  /* ciemna strefa u góry */
  --d-paper: #29221b;
  --d-paper-2: #322920;
  --d-ink: #f1e7d8;
  --d-muted: #b9a88f;
  --d-line: #3d3228;
  --d-gold: #e0b36e;
  --dark: #1f1a15;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 "Lato", system-ui, sans-serif;
}
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; line-height: 1.1; margin: 0; }
a { color: var(--gold-dark); }

/* ---------- background: faint flour sack ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background:
    url("img/sack.png") right -60px bottom -30px / min(680px, 70vw) no-repeat,
    url("img/sack.png") left -140px top 18vh / min(520px, 60vw) no-repeat;
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  transition: background .3s, box-shadow .3s;
}
.topbar-in {
  display: flex; align-items: center; gap: 1.6rem;
  max-width: 1280px; margin: 0 auto; padding: 1rem 24px; position: relative;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 42px; width: auto; display: block; filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0,0,0,.4)); transition: filter .3s, height .3s; }
.links { display: flex; gap: 1.8rem; }
.links a { color: #fff; text-decoration: none; font-size: .98rem; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.links a:hover { color: #f3d29e; }
.burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }
.topbar.solid { background: rgba(31, 26, 21, .92); backdrop-filter: blur(8px); box-shadow: 0 2px 16px rgba(0,0,0,.35); border-bottom: 1px solid var(--line); }
.topbar.solid .brand img { height: 36px; }
.topbar.solid .links a { color: var(--ink); text-shadow: none; }
.topbar.solid .links a:hover { color: var(--gold-dark); }


.btn-gold {
  display: inline-block; background: var(--gold); color: #fff; text-decoration: none;
  padding: .6rem 1.4rem; border-radius: 999px; font-size: .95rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: background .2s;
}
.btn-gold:hover { background: #a9762f; }
.btn-gold.small { margin-top: 1.2rem; }
.btn-gold.big { margin-top: 2rem; padding: .85rem 1.9rem; font-size: 1.02rem; }

/* ---------- hero: full screen ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,14,8,.72) 0%, rgba(20,14,8,.35) 45%, rgba(20,14,8,0) 75%),
    linear-gradient(180deg, rgba(20,14,8,.45) 0%, rgba(20,14,8,0) 25%);
}
.hero-text { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; color: #fff; }
.hero-in { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hero-text h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 14ch; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-text p { text-shadow: 0 1px 10px rgba(0,0,0,.5); font-family: "Cormorant Garamond", serif; font-size: clamp(1.25rem, 2.4vw, 1.8rem); margin: .8rem 0 0; }
.hero-text .place { font-family: "Lato", sans-serif; font-size: .8rem; letter-spacing: .32em; text-transform: uppercase; margin: 0 0 1rem; opacity: .9; }

/* desktop: split hero — tekst na ciemnym tle, zdjęcie z prawej (zdjęcie jest pionowe, więc nie rozciągamy go na 1900px) */
@media (min-width: 1000px) {
  .hero { display: grid; grid-template-columns: 46% 54%; background: var(--dark); }
  .hero img { position: relative; grid-column: 2; grid-row: 1; inset: auto; height: 100%; object-position: center 50%; }
  .hero::after {
    background: linear-gradient(90deg, var(--dark) 46%, rgba(31,26,21,.55) 52%, rgba(31,26,21,0) 66%),
                linear-gradient(180deg, rgba(20,14,8,.45) 0%, rgba(20,14,8,0) 22%);
  }
  .hero-text { position: relative; grid-column: 1 / 3; grid-row: 1; inset: auto; }
  .hero-text::before {
    content: ""; position: absolute; left: -60px; bottom: 40px; width: 46%; height: 70%; pointer-events: none;
    background: url("img/sack.png") left bottom / contain no-repeat; filter: invert(1); opacity: .06;
  }
}

/* ---------- tiles ---------- */
main { padding: 0; }
.zone-dark { display: flow-root; background: var(--dark); padding: 0 24px 3rem; }
.fade { height: 320px; background: linear-gradient(180deg, var(--dark) 0%, #3b2e23 22%, #7a5e43 48%, #c3a57e 74%, var(--bg) 100%); }
.tiles, .about { max-width: 1280px; margin-left: auto; margin-right: auto; }
.products { max-width: 1328px; margin: -140px auto 0; padding: 0 24px 4rem !important; position: relative; }

/* kolory w ciemnej strefie */
.zone-dark .tile { background: var(--d-paper); border-color: var(--d-line); color: var(--d-ink); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.zone-dark .tile:hover { border-color: #5a4633; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.zone-dark .tile p { color: var(--d-muted); }
.zone-dark .icon { background: var(--d-paper-2); }
.zone-dark .icon svg { stroke: var(--d-gold); }
.zone-dark h2 { color: #fff7ea; }
.zone-dark .about p { color: var(--d-muted); }
.zone-dark .seal { filter: invert(1) sepia(.35) brightness(.95); opacity: .9; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 2.5rem 0 1rem; position: relative; z-index: 2; }
.tile {
  display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.4rem;
  box-shadow: 0 6px 20px rgba(60, 40, 20, .06); transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-2px); }
.tile h2 { font-size: 1.6rem; }
.tile p { margin: .3rem 0 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.icon {
  flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--paper-2);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sections ---------- */
.title { font-size: 2.4rem; text-align: center; margin-bottom: 2rem; }
.title::after { content: ""; display: block; width: 56px; height: 2px; background: var(--gold); margin: .7rem auto 0; }

.about {
  display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center;
  max-width: 860px; margin: 0 auto; padding: 1rem 24px 5rem;
}
.about .title { text-align: left; margin-bottom: 1rem; }
.about .title::after { margin-left: 0; }
.about p { font-size: 1.08rem; color: var(--muted); margin: 0; }
.seal { width: 100%; height: auto; }

.products { padding: 3.5rem 0 4rem; }
.product {
  display: grid; grid-template-columns: 1fr 1.15fr;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 14px 40px rgba(90, 60, 30, .12); margin-bottom: 2.2rem;
}
.product:nth-child(odd of .product) { grid-template-columns: 1.15fr 1fr; }
.product:nth-child(odd of .product) img { order: 2; }
.product img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 360px; }
.product .body { padding: 2.3rem; align-self: center; }
.product h3 { font-size: 2.3rem; margin-bottom: 1rem; }
.product h3 span { display: block; font-size: 1.3rem; font-style: italic; font-weight: 500; color: var(--gold-dark); margin-top: .2rem; }
.variants { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.variants li { border: 1px solid var(--line); background: var(--paper-2); padding: .25rem .8rem; border-radius: 999px; font-size: .88rem; }
.ingredients { font-size: .94rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 1rem; }
.note { margin-top: 1rem; background: var(--paper-2); border-radius: 12px; padding: .8rem 1.1rem; }
.note summary { cursor: pointer; font-weight: 700; color: var(--gold-dark); }
.note p { font-size: .94rem; }

/* ---------- footer ---------- */
footer { background: #e4cfac; border-top: 1px solid #d6bd96; color: var(--ink); text-align: center; padding: 3.5rem 16px 2rem; }
footer h2 { font-size: 2.2rem; color: var(--ink); }
footer .sub { color: var(--muted); margin: .4rem 0 1.4rem; }
footer ul { list-style: none; padding: 0; margin: 0 0 2.5rem; font-size: 1.1rem; }
footer li { margin: .35rem 0; }
footer a { color: #8a5a1f; }
footer .copy { font-size: .82rem; color: #8a7458; margin: 0; }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .links {
    display: none; position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; gap: 0;
    background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .4rem 0;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
  }
  .links.open { display: flex; }
  .links a, .topbar.solid .links a { padding: .7rem 1.2rem; color: var(--ink); text-shadow: none; }
  .links { box-shadow: 0 10px 24px rgba(0,0,0,.45); }
  .burger { display: block; }
  .topbar-in { padding: .8rem 16px; gap: .8rem; }
  .brand img { height: 30px; }
  .topbar.solid .brand img { height: 28px; }
  .btn-gold { padding: .5rem 1.1rem; font-size: .88rem; }
  .hero { height: 88vh; min-height: 520px; }
  .hero::after { background: linear-gradient(180deg, rgba(20,14,8,.7) 0%, rgba(20,14,8,.35) 50%, rgba(20,14,8,.1) 100%); }
  .hero-text { align-items: flex-start; padding-top: 7rem; }
  .hero-in { padding: 0 20px; }
  .zone-dark { padding: 0 16px 2.5rem; }
  .fade { height: 220px; }
  .products { padding: 0 16px 3rem !important; margin-top: -90px; }
  .tiles { grid-template-columns: 1fr; gap: .9rem; margin-top: 1.5rem; }
  .about { grid-template-columns: 1fr; text-align: center; gap: 1.2rem; padding-top: 3rem; }
  .about .title { text-align: center; }
  .about .title::after { margin-left: auto; }
  .seal { width: 170px; margin: 0 auto; }
  .product, .product:nth-child(odd of .product) { grid-template-columns: 1fr; }
  .product:nth-child(odd of .product) img { order: 0; }
  .product img { min-height: 260px; max-height: 420px; }
  .product .body { padding: 1.5rem; }
}
.price {
  display: inline-block; margin: -.2rem 0 1rem; padding: .2rem .9rem; border-radius: 999px;
  background: var(--gold); color: #fff; font-weight: 700; font-size: 1.05rem;
}
.about-page { margin-top: -140px; position: relative; }
.links a.active { color: #f3d29e; }
.topbar.solid .links a.active { color: var(--gold); }
div.tile:hover { transform: none; }
@media (max-width: 820px) { .about-page { margin-top: -90px; } }

/* ---------- haft (wyszywanka) po lewej na stronie głównej ---------- */
:root {
  --orn: 250px;                                      /* szerokość samego wzoru */
  --orn-pad: 16px;                                   /* jasny brzeg wokół wzoru */
  --orn-left: 16px;                                  /* odstęp od krawędzi ekranu */
  --orn-gap: 56px;                                   /* odstęp od tekstu */
  --text-left: calc(var(--orn-left) + var(--orn) + 2 * var(--orn-pad) + var(--orn-gap));
}
body.ornamented { position: relative; }
.ornament {                                          /* od góry do samego dołu strony */
  position: absolute; top: 0; bottom: 0; left: var(--orn-left); z-index: 15;
  width: calc(var(--orn) + 2 * var(--orn-pad));
  background: #fff;                                  /* białe tło pod haftem */
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 10px 40px rgba(0,0,0,.55);
}
.ornament::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--orn-pad); right: var(--orn-pad);
  background: url("img/ornament.jpg") top center / 100% auto repeat-y;
}
.ornamented .hero-in,
.ornamented .topbar:not(.solid) .topbar-in { max-width: none; padding-left: var(--text-left); }
.ornamented .topbar:not(.solid) .topbar-in { padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px)); }
.ornamented .hero-text::before { left: calc(var(--text-left) - 80px); }
/* treść pod pierwszym ekranem też odsunięta od haftu */
.ornamented .zone-dark { padding-left: var(--text-left); }
.ornamented .products { max-width: none; padding-left: var(--text-left) !important; padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px)) !important; }
.ornamented footer { padding-left: var(--text-left); }
.ornamented .about-page { padding-left: var(--text-left); padding-right: 24px; max-width: calc(860px + var(--text-left) + 24px); margin-left: 0; }
@media (max-width: 820px) {
  :root { --orn: 60px; --orn-pad: 5px; --orn-left: 6px; --orn-gap: 12px; }
  .ornamented .zone-dark { padding-right: 12px; }
  .ornamented .products { padding-right: 12px !important; }
  .ornamented footer { padding-right: 12px; }
  .ornamented .about-page { padding-right: 12px; }
  .ornamented .hero-in { padding-left: var(--text-left); padding-right: 16px; }
  .ornamented .topbar:not(.solid) .topbar-in { padding-left: var(--text-left); padding-right: 12px; gap: .5rem; }
  .ornamented .topbar:not(.solid) .brand img { height: 24px; }
}

/* ---------- kafelki wartości na dole pierwszego ekranu ---------- */
.hero-values { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding-bottom: 28px; }
.hero-values .tiles { margin: 0; }
.hero-values .tile {
  background: rgba(31, 26, 21, .78); border-color: rgba(255,255,255,.08); color: var(--d-ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero-values .tile p { color: var(--d-muted); }
.hero-values .icon { background: var(--d-paper-2); }
.hero-values .icon svg { stroke: var(--d-gold); }
.hero-values h2 { color: #fff7ea; }
.ornamented .hero-values .hero-in { padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px)); }
@media (min-width: 821px) {
  .ornamented .hero-text { padding-bottom: 250px; }
}
@media (max-width: 820px) {
  .hero-values { padding-bottom: 14px; }
  .hero-values .tiles { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .hero-values .tile { flex-direction: column; align-items: center; text-align: center; gap: .4rem; padding: .7rem .4rem; }
  .hero-values .tile h2 { font-size: 1.05rem; }
  .hero-values .tile p { display: none; }
  .hero-values .icon { width: 34px; height: 34px; }
  .hero-values .icon svg { width: 20px; height: 20px; }
  .ornamented .hero-values .hero-in { padding-right: 12px; padding-left: var(--text-left); }
}
.about p + p { margin-top: .8rem; }
