/* maryka.pl - nowy front-end. Mobile-first, bez zależności. */

:root {
  --ink: #111;
  --ink-soft: #4a4a4a;
  --muted: #8a8a8a;
  --line: #e6e3de;
  --paper: #fff;
  --paper-alt: #f8f6f3;
  --gold: #b8956a;
  --gold-dark: #8c6c45;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: 20px;
  --space: clamp(56px, 9vw, 112px);
  --radius: 2px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { flex-shrink: 0; }
.logo img { height: 44px; width: auto; max-width: none; flex-shrink: 0; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  font: 500 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 22px; height: 1.5px; background: currentColor; position: relative;
  transition: transform .25s ease, background .25s ease;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.menu { display: none; border-top: 1px solid var(--line); }
.menu.is-open { display: block; }
.menu-inner { padding-top: 8px; padding-bottom: 20px; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
}
.nav a[aria-current="page"] { color: var(--gold-dark); }

.search { display: flex; margin-top: 18px; border-bottom: 1px solid var(--ink); }
.search input {
  flex: 1; min-width: 0; border: 0; padding: 10px 0; background: transparent;
  font: inherit; font-size: .95rem; color: var(--ink);
}
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--gold); }
.search button { border: 0; background: none; padding: 0 4px; cursor: pointer; color: var(--ink); }
.search button:hover { color: var(--gold-dark); }

/* ---------- Sections ---------- */

.section { padding: var(--space) 0; }
.section--alt { background: var(--paper-alt); }
.section--tight { padding-top: calc(var(--space) * .6); }
.section--half { padding: calc(var(--space) / 2) 0; }

.eyebrow {
  display: block; margin-bottom: 14px;
  font: 500 .74rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark);
}
.rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 0 0 28px; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.prose { color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }

.page-head { padding: calc(var(--space) * .75) 0 calc(var(--space) * .45); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .25em; }
.page-head p { margin: 0; color: var(--ink-soft); max-width: 640px; }

.breadcrumbs { font-size: .8rem; color: var(--muted); margin-bottom: 18px; letter-spacing: .04em; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: 14px 28px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none;
  font: 500 .76rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */

.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 50vh; padding: 56px 0; text-align: center; color: #fff; overflow: hidden; background: #3a332c;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(25,20,15,.35) 0%, rgba(25,20,15,.5) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero .eyebrow { color: #f1e4d2; }
.hero h1 { max-width: 820px; margin: 0 auto .45em; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero .lead { max-width: 600px; margin: 0 auto 34px; color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero .btn-row { justify-content: center; }
.hero .btn { background: #fff; border-color: #fff; color: var(--ink); }
.hero .btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.hero .btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.hero .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
@media (min-width: 960px) { .hero { min-height: 70vh; padding: 80px 0; } }

/* ---------- News ---------- */

.news { display: grid; gap: 32px; align-items: center; }
.news-media img { width: 100%; }
.news .prose + p { margin-top: 1.5rem; }
.badge {
  display: inline-block; padding: 6px 12px; margin-bottom: 18px; border: 1px solid var(--gold);
  font: 600 .7rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark);
}

/* ---------- Categories ---------- */

.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.cat-card { display: block; text-decoration: none; height: 100%; }
.cat-card__img {
  aspect-ratio: 4 / 3; background: var(--paper-alt); overflow: hidden; display: grid; place-items: center;
}
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover .cat-card__img img { transform: scale(1.04); }
.cat-card__name {
  display: block; padding: 12px 0 2px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.25;
}
.cat-card__count { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .06em; }
.cat-card:hover .cat-card__name { color: var(--gold-dark); }

.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cat-chips a {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--line); text-decoration: none;
  font-size: .8rem; letter-spacing: .04em;
}
.cat-chips a:hover { border-color: var(--gold); color: var(--ink); }
.cat-chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Products ---------- */

.product-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 16px; grid-template-columns: repeat(2, 1fr); }
.product__img {
  display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 12px;
  background: var(--paper-alt); border: 1px solid var(--line);
}
.product__img img { max-height: 100%; width: auto; object-fit: contain; }
a.product__img { cursor: zoom-in; }
a.product__img:hover { border-color: var(--gold); }
.product__name { margin: 12px 0 2px; font: 500 .95rem/1.4 var(--sans); }
.product__note { margin: 0 0 4px; font-size: .82rem; color: var(--muted); }
.product__prices { margin: 4px 0 0; padding: 0; list-style: none; font-size: .88rem; }
.product__prices strong { font-weight: 600; }
.product__prices li span { color: var(--muted); }
.product__cat { font-size: .78rem; color: var(--muted); }

.note-box {
  margin-top: 48px; padding: 24px; border-left: 2px solid var(--gold); background: var(--paper-alt);
  color: var(--ink-soft);
}
.note-box p:last-child { margin: 0; }

/* ---------- Gallery ---------- */

.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-alt); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.gallery a:hover img { transform: scale(1.04); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 40px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .label {
  display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.contact-list .value { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; }
.contact-list a { text-decoration: none; }
.map { position: relative; aspect-ratio: 4 / 3; background: var(--paper-alt); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cta-strip { text-align: center; }
.cta-strip .phones { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 6px; }
.cta-strip .phones a { text-decoration: none; }
.cta-strip .phones .sep { color: var(--gold); margin: 0 .4em; }

/* ---------- Ozdobne zdjęcia po bokach sekcji (desktop) ---------- */

.side-deco > .narrow { margin: 0 auto; }
.side-deco__img { display: none; }
@media (min-width: 1100px) {
  .side-deco { display: grid; grid-template-columns: 1fr minmax(0, 760px) 1fr; gap: 40px; align-items: center; }
  .side-deco__img { display: flex; justify-content: center; }
  .side-deco__img img { width: auto; max-width: 220px; max-height: 320px; }
  /* Zdjęcia dosunięte do krawędzi sekcji (ucięte fragmenty grafik): odstęp pionowy tylko przy tekście */
  .section:has(> .side-deco--edge) { padding-top: 0; padding-bottom: 0; }
  .side-deco--edge { align-items: stretch; }
  .side-deco--edge .side-deco__body { padding: var(--space) 0; }
  .section--half .side-deco--edge .side-deco__body { padding: calc(var(--space) / 2) 0; align-self: center; }
  .side-deco__img--top { align-items: flex-start; }
  .side-deco__img--bottom { align-items: flex-end; }
}

/* ---------- Baner cookies ---------- */

.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.08); }
.cookie-bar[hidden] { display: none; }
.cookie-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.cookie-bar__inner p { flex: 1 1 320px; margin: 0; font-size: .9rem; color: var(--ink-soft); }
.cookie-bar__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #fff; cursor: pointer; text-align: left; }
.linklike:hover { color: var(--gold); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #cfcfcf; padding: 56px 0 28px; font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer-brand { font-family: var(--serif); font-size: 1.8rem; color: #fff; margin-bottom: 6px; letter-spacing: .06em; }
.footer-head { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.footer-copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2a2a2a; font-size: .78rem; color: #8a8a8a; }

/* ---------- Lightbox ---------- */

.lb {
  position: fixed; inset: 0; z-index: 50; display: none; place-items: center;
  background: rgba(10,10,10,.94); padding: 56px 12px 72px;
}
.lb.is-open { display: grid; }
.lb__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb__img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; }
.lb__cap { color: #e8e8e8; font-size: .9rem; margin-top: 14px; text-align: center; letter-spacing: .03em; }
.lb__count { color: var(--gold); margin-left: 10px; font-size: .78rem; letter-spacing: .1em; }
.lb button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  width: 52px; height: 52px; display: grid; place-items: center; font: 300 2rem/1 var(--sans);
}
.lb button:hover { color: var(--gold); }
.lb__close { top: 6px; right: 6px; }
.lb__prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 4px; top: 50%; transform: translateY(-50%); }
body.lb-lock { overflow: hidden; }

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 22px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .header-bar { height: 84px; }
  .logo img { height: 56px; }
  .menu-toggle { display: none; }
  .site-header { display: flex; align-items: center; }
  .site-header > .wrap { width: auto; max-width: none; margin: 0; flex: 0 0 auto; padding-right: 0; }
  .menu { display: block; border: 0; flex: 1 1 auto; min-width: 0; }
  .menu-inner { display: flex; align-items: center; justify-content: flex-end; gap: 28px; min-width: 0; padding: 0 var(--gutter) 0 0; max-width: none; }
  .nav { min-width: 0; }
  .nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
  .nav a { border: 0; padding: 6px 0; font-size: .74rem; position: relative; }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold);
    transition: right .25s ease;
  }
  .nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
  .nav a[aria-current="page"] { color: var(--ink); }
  .search { margin: 0; width: 190px; flex: 0 1 190px; min-width: 120px; }
  .search input { padding: 6px 0; font-size: .85rem; }

  .news { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .lb button { width: 64px; height: 64px; }
  .lb__prev { left: 16px; } .lb__next { right: 16px; }
}

@media (min-width: 1200px) {
  .site-header { justify-content: center; }
  .site-header > .wrap { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
  .menu-inner { padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
  .nav ul { gap: 6px 28px; }
  .search { width: 210px; flex-basis: 210px; }
}

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

@media print {
  .site-header .menu, .menu-toggle, .site-footer, .lb { display: none !important; }
}
