/* ===================================================================
   MEMORIA — Katalog domów i usług pogrzebowych
   System designu. Ciepła, dostojna, editorialowa estetyka.
   =================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Kolory bazowe */
  --ink:        #1c211e;   /* tekst główny, zielono-czarny */
  --ink-soft:   #3a433d;
  --evergreen:  #2e3d36;   /* ciemna zieleń — nagłówki, footer */
  --sage:       #6c7c72;   /* stonowany szałwiowy — teksty drugorzędne */
  --sage-light: #97a49a;
  --paper:      #f4f0e8;   /* tło strony — ciepła kość słoniowa */
  --paper-2:    #efe9dd;
  --card:       #fffdf8;   /* karty */
  --line:       #e2dccc;   /* delikatne linie */
  --line-soft:  #ece7da;

  /* Akcent — przygaszony brąz/mosiądz */
  --bronze:     #a9855f;
  --bronze-dk:  #8a6a48;
  --bronze-ln:  #d8c4aa;
  --gold-bg:    #f3ede0;

  /* Premium */
  --premium:    #b08d57;
  --premium-bg: #f7efe1;

  /* System */
  --ok:         #4f7a5f;
  --danger:     #a44a3f;

  /* Typografia */
  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Promienie i cienie */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(28,33,30,.05), 0 2px 8px rgba(28,33,30,.04);
  --shadow-md: 0 6px 24px rgba(28,33,30,.08), 0 2px 6px rgba(28,33,30,.05);
  --shadow-lg: 0 24px 60px rgba(28,33,30,.14), 0 8px 20px rgba(28,33,30,.07);

  /* Layout */
  --wrap: 1200px;
  --gap: clamp(20px, 4vw, 56px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; color: var(--evergreen); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--bronze-dk);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--bronze-ln); }
.muted { color: var(--sage); }
.section { padding-block: clamp(56px, 8vw, 104px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 600;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; transition: .22s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--evergreen); color: #f6f2e9; }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-bronze { background: var(--bronze); color: #fff; }
.btn-bronze:hover { background: var(--bronze-dk); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--evergreen); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--evergreen); background: #fff; }
.btn-white { background: var(--card); color: var(--evergreen); box-shadow: var(--shadow-sm); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===================================================================
   TOP BAR
   =================================================================== */
.topbar {
  background: var(--evergreen);
  color: #cfd7d0;
  font-size: 13px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 20px; }
.topbar a { color: #e7ede8; transition: .2s; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 22px; align-items: center; }
.topbar .tb-left span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }
@media (max-width: 760px){ .topbar .tb-left span:not(:first-child){ display:none; } }

/* ===================================================================
   HEADER / NAV
   =================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,240,232,.82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #c8a878, var(--bronze) 55%, var(--bronze-dk));
  display: grid; place-items: center;
  box-shadow: inset 0 1px 3px rgba(255,255,255,.4), var(--shadow-sm);
  flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; color: #fff; }
.brand-name { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--evergreen); letter-spacing: -.02em; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-top: 3px; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  padding: 9px 15px; border-radius: 999px; transition: .2s;
}
.nav-links a:hover { color: var(--evergreen); background: rgba(46,61,54,.06); }
.nav-links a.active { color: var(--evergreen); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--evergreen); display:block; }

@media (max-width: 960px){
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ===================================================================
   HERO — editorial, asymetryczny
   =================================================================== */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding-block: clamp(48px, 6vw, 88px); }
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.15rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 22px 0 20px;
}
.hero h1 em { font-style: italic; color: var(--bronze-dk); }
.hero-lead { font-size: 18.5px; color: var(--ink-soft); max-width: 460px; }

/* Search */
.hero-search {
  margin-top: 30px; background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 10px;
  box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px;
}
.hs-field { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--r-md); min-width: 0; }
.hs-field > div { min-width: 0; }
.hs-field:hover { background: var(--paper-2); }
.hs-field svg { width: 19px; height: 19px; color: var(--bronze); flex-shrink: 0; }
.hs-field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.hs-field input, .hs-field select {
  border: none; background: none; font-family: var(--sans);
  font-size: 15.5px; color: var(--ink); width: 100%; max-width: 100%; padding: 2px 0; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hs-field select { padding-right: 18px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c7c72' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; }
.hs-field input:focus, .hs-field select:focus { outline: none; }
.hero-search .btn { border-radius: var(--r-md); }
@media (max-width: 560px){ .hero-search { grid-template-columns: 1fr; } }

.hero-trust { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-family: var(--serif); font-size: 26px; color: var(--evergreen); font-weight: 600; }
.hero-trust span { font-size: 13px; color: var(--sage); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/4.6;
  box-shadow: var(--shadow-lg); position: relative;
  background: linear-gradient(155deg, #3a4a41, #2a352f 60%, #232c27);
}
.hero-photo::after {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(200,168,120,.28), transparent 55%),
    linear-gradient(to top, rgba(20,25,22,.55), transparent 55%);
}
.hero-photo .candle {
  position: absolute; left: 50%; top: 46%; transform: translateX(-50%);
  width: 150px; height: 150px; z-index: 1;
}
.hero-badge {
  position: absolute; left: -22px; bottom: 34px; z-index: 3;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 16px 20px;
  display: flex; align-items: center; gap: 13px; max-width: 250px;
  border: 1px solid var(--line);
}
.hero-badge .hb-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--premium-bg); display: grid; place-items: center; flex-shrink: 0; }
.hero-badge .hb-ic svg { width: 22px; height: 22px; color: var(--premium); }
.hero-badge b { display: block; font-family: var(--serif); font-size: 16px; color: var(--evergreen); }
.hero-badge span { font-size: 12.5px; color: var(--sage); }

@media (max-width: 880px){
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ===================================================================
   SEKCJA NAGŁÓWKA
   =================================================================== */
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow::before { display: none; }
.sec-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 400; margin: 16px 0 14px; letter-spacing: -.02em; }
.sec-head p { font-size: 17.5px; color: var(--sage); margin: 0; }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-head-row .sec-head { margin-bottom: 0; }

/* ===================================================================
   USŁUGI / KATEGORIE
   =================================================================== */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 24px 20px 22px;
  transition: .25s ease; position: relative; overflow: hidden;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--bronze-ln); }
.cat-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; margin-bottom: 16px; transition: .25s; }
.cat:hover .cat-ic { background: var(--premium-bg); }
.cat-ic svg { width: 24px; height: 24px; color: var(--evergreen); }
.cat h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.cat p { font-size: 13.5px; color: var(--sage); margin: 0; }
.cat .cat-count { font-size: 12px; color: var(--bronze-dk); font-weight: 600; margin-top: 12px; display: block; }
@media (max-width: 980px){ .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px){ .cats { grid-template-columns: repeat(2, 1fr); } }

/* ===================================================================
   WYRÓŻNIONE FIRMY
   =================================================================== */
.listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-firm {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; transition: .25s ease;
  display: flex; flex-direction: column; position: relative;
}
.card-firm:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-firm.premium { border-color: var(--bronze-ln); box-shadow: 0 0 0 1px var(--bronze-ln), var(--shadow-sm); }
.cf-media { aspect-ratio: 16/10; position: relative; background: linear-gradient(150deg, #46574d, #2c352f); overflow: hidden; display: block; }
.cf-media::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(20,25,22,.35), transparent 60%); }
/* Wariant z logo firmy (listing): logo wycentrowane na jasnym tle, bez ciemnej nakładki */
.cf-media.logo { background: var(--paper-2); display: grid; place-items: center; padding: 22px; }
.cf-media.logo::after { display: none; }
.cf-media.logo img { width: auto; max-width: 74%; max-height: 74%; object-fit: contain; transition: transform .25s ease; }
.card-firm:hover .cf-media.logo img { transform: scale(1.04); }
.cf-tags { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 7px; }
.tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 999px; background: rgba(255,253,248,.92);
  color: var(--evergreen); backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: 5px;
}
.tag svg { width: 13px; height: 13px; }
.tag.premium { background: linear-gradient(135deg, #c8a878, var(--premium)); color: #fff; }
.tag.verified { color: var(--ok); }
.cf-fav { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,253,248,.9); border: none; display: grid; place-items: center; transition: .2s; }
.cf-fav:hover { background: #fff; transform: scale(1.08); }
.cf-fav svg { width: 17px; height: 17px; color: var(--evergreen); }
.cf-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.cf-city { font-size: 13px; color: var(--sage); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.cf-city svg { width: 14px; height: 14px; color: var(--bronze); }
.cf-body h3 { font-size: 21px; font-weight: 600; margin-bottom: 9px; }
.cf-body h3 a:hover { color: var(--bronze-dk); }
.cf-desc { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chip { font-size: 12.5px; color: var(--sage); background: var(--paper-2); padding: 4px 10px; border-radius: 999px; }
.cf-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.cf-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--evergreen); }
.cf-rating svg { width: 16px; height: 16px; color: var(--premium); }
.cf-rating span { color: var(--sage); font-weight: 400; font-size: 13px; }
.cf-link { font-size: 14px; font-weight: 600; color: var(--bronze-dk); display: inline-flex; align-items: center; gap: 5px; transition: gap .2s; }
.cf-link:hover { gap: 9px; }
.cf-link svg { width: 15px; height: 15px; }
@media (max-width: 940px){ .listings { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .listings { grid-template-columns: 1fr; } }

/* Free vs premium hint */
.card-firm.free .cf-desc { color: var(--sage); }

/* ===================================================================
   BAND — dlaczego / jak to działa
   =================================================================== */
.band { background: var(--evergreen); color: #e7ede8; }
.band h2, .band h3 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.step { position: relative; }
.step-n { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--bronze); border: 1px solid rgba(200,168,120,.4); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: #b9c4bc; font-size: 15px; margin: 0; }
@media (max-width: 760px){ .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ===================================================================
   CENNIK skrót (free vs premium)
   =================================================================== */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin-inline: auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 32px; position: relative; }
.plan.pro { border-color: var(--bronze-ln); box-shadow: 0 0 0 1px var(--bronze-ln), var(--shadow-md); }
.plan-flag { position: absolute; top: -13px; right: 28px; background: linear-gradient(135deg,#c8a878,var(--premium)); color:#fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 6px 14px; border-radius: 999px; }
.plan h3 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; color: var(--sage); margin-bottom: 14px; }
.plan .price { font-family: var(--serif); font-size: 44px; color: var(--evergreen); font-weight: 600; line-height: 1; }
.plan .price span { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--sage); }
.plan .plan-sub { font-size: 14.5px; color: var(--sage); margin: 10px 0 22px; }
.plan ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.plan li { display: flex; gap: 11px; font-size: 14.5px; color: var(--ink-soft); align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.plan li.yes svg { color: var(--ok); }
.plan li.no { color: var(--sage-light); }
.plan li.no svg { color: var(--line); }
@media (max-width: 720px){ .plans { grid-template-columns: 1fr; } }

/* ===================================================================
   BLOG / PORADNIK
   =================================================================== */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { display: flex; flex-direction: column; }
.post-media { aspect-ratio: 16/11; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(150deg,#5a6a5f,#374039); margin-bottom: 16px; position: relative; }
.post-cat { position: absolute; bottom: 12px; left: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,253,248,.92); padding: 5px 11px; border-radius: 999px; color: var(--bronze-dk); }
.post-meta { font-size: 12.5px; color: var(--sage); margin-bottom: 8px; }
.post h3 { font-size: 20px; font-weight: 600; margin-bottom: 9px; line-height: 1.2; }
.post h3 a:hover { color: var(--bronze-dk); }
.post p { font-size: 14.5px; color: var(--sage); margin: 0; }
@media (max-width: 860px){ .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .posts { grid-template-columns: 1fr; } }

/* ===================================================================
   CTA dla firm
   =================================================================== */
.cta-firm {
  background: linear-gradient(135deg, #34443c, #253029);
  border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px);
  position: relative; overflow: hidden; color: #e7ede8;
}
.cta-firm::before {
  content:""; position:absolute; right:-80px; top:-80px; width: 340px; height: 340px; border-radius:50%;
  background: radial-gradient(circle, rgba(200,168,120,.22), transparent 68%);
}
.cta-firm .cta-inner { position: relative; max-width: 560px; }
.cta-firm h2 { color: #fff; font-size: clamp(2rem,3.6vw,2.8rem); font-weight: 400; margin-bottom: 16px; }
.cta-firm p { color: #c2ccc3; font-size: 17.5px; margin-bottom: 28px; }
.cta-firm .btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--ink); color: #a9b2ab; padding-block: clamp(52px,6vw,76px) 30px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.09); }
.foot-brand .brand-name { color: #fff; }
.foot-brand .brand-name small { color: var(--sage-light); }
.foot-brand p { margin: 18px 0 20px; max-width: 320px; font-size: 14.5px; color: #93a096; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; transition: .2s; }
.foot-social a:hover { background: var(--bronze); border-color: var(--bronze); }
.foot-social svg { width: 17px; height: 17px; color: #d7ddd7; }
.foot-col h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 700; }
.foot-col a { display: block; font-size: 14.5px; padding: 6px 0; color: #a9b2ab; transition: .2s; }
.foot-col a:hover { color: #fff; padding-left: 4px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; font-size: 13px; color: #7f8a82; flex-wrap: wrap; }
.foot-bottom a { color: #a9b2ab; }
@media (max-width: 860px){ .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px){ .foot-top { grid-template-columns: 1fr; } }

/* ===================================================================
   STRONA FIRMY
   =================================================================== */
.breadcrumb { font-size: 13.5px; color: var(--sage); padding-block: 20px 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--bronze-dk); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }

/* Galeria firmy */
.firm-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(280px, 42vw, 460px); margin-top: 12px; }
.firm-gallery .fg { border-radius: var(--r-md); overflow: hidden; position: relative; background: linear-gradient(150deg,#48584e,#2c352f); }
.firm-gallery .fg:first-child { grid-row: span 2; border-radius: var(--r-lg); }
.fg img { width: 100%; height: 100%; object-fit: cover; }
.fg-more { position: absolute; right: 14px; bottom: 14px; background: rgba(28,33,30,.72); color:#fff; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px); display:inline-flex; gap:7px; align-items:center; }
.fg-more svg { width: 15px; height: 15px; }
@media (max-width: 700px){ .firm-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; height: 240px; } .firm-gallery .fg:nth-child(n+4){ display:none; } .firm-gallery .fg:first-child{ grid-row: span 1; } }

/* Nagłówek firmy */
.firm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin: 30px 0 8px; flex-wrap: wrap; }
.firm-title-wrap { flex: 1; min-width: 260px; }
.firm-badges { display: flex; gap: 9px; margin-bottom: 12px; flex-wrap: wrap; }
.badge {
  font-size: 12.5px; font-weight: 700; letter-spacing: .03em;
  padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.badge svg { width: 14px; height: 14px; }
.badge.premium { background: linear-gradient(135deg,#c8a878,var(--premium)); color: #fff; }
.badge.verified { background: #e6efe7; color: var(--ok); }
.badge.years { background: var(--paper-2); color: var(--ink-soft); }
.firm-head h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 400; letter-spacing: -.02em; margin-bottom: 12px; }
.firm-sub { display: flex; gap: 20px; flex-wrap: wrap; color: var(--sage); font-size: 15px; align-items: center; }
.firm-sub span { display: inline-flex; align-items: center; gap: 7px; }
.firm-sub svg { width: 16px; height: 16px; color: var(--bronze); }
.firm-sub .stars svg { color: var(--premium); }
.firm-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Layout firmy */
.firm-layout { display: grid; grid-template-columns: 1fr 372px; gap: 44px; align-items: start; margin-top: 44px; }
@media (max-width: 960px){ .firm-layout { grid-template-columns: 1fr; } }

.firm-section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.firm-section:last-child { border-bottom: none; }
.firm-section h2 { font-size: 26px; font-weight: 500; margin-bottom: 18px; }
.firm-section p { color: var(--ink-soft); font-size: 16.5px; }
.lead-p { font-size: 18.5px !important; color: var(--ink-soft); }

/* Usługi firmy */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc { display: flex; gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); align-items: flex-start; }
.svc-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--premium-bg); display: grid; place-items: center; flex-shrink: 0; }
.svc-ic svg { width: 21px; height: 21px; color: var(--bronze-dk); }
.svc b { display: block; font-size: 15.5px; color: var(--evergreen); font-weight: 600; margin-bottom: 3px; }
.svc span { font-size: 13.5px; color: var(--sage); }
@media (max-width: 520px){ .svc-grid { grid-template-columns: 1fr; } }

/* Opinie */
.review { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.review:last-child { border-bottom: none; }
.review-top { display: flex; align-items: center; gap: 13px; margin-bottom: 11px; }
.rev-av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--sage), var(--evergreen)); color: #fff; display: grid; place-items: center; font-weight: 600; font-family: var(--serif); font-size: 17px; }
.rev-name { font-weight: 600; color: var(--evergreen); font-size: 15px; }
.rev-date { font-size: 12.5px; color: var(--sage); }
.rev-stars { margin-left: auto; display: flex; gap: 2px; }
.rev-stars svg { width: 15px; height: 15px; color: var(--premium); }
.review p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

/* Sidebar firmy */
.firm-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.aside-card.contact { border-color: var(--bronze-ln); box-shadow: 0 0 0 1px var(--bronze-ln), var(--shadow-md); }
.ac-title { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); font-weight: 700; margin-bottom: 16px; }
.contact-rows { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.crow { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.crow:last-child { border-bottom: none; }
.crow-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; flex-shrink: 0; }
.crow-ic svg { width: 18px; height: 18px; color: var(--bronze-dk); }
.crow small { display: block; font-size: 12px; color: var(--sage); }
.crow b { font-size: 15px; color: var(--evergreen); font-weight: 600; }
.contact-btns { display: flex; flex-direction: column; gap: 10px; }

/* Godziny */
.hours li { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14.5px; border-bottom: 1px solid var(--line-soft); }
.hours li:last-child { border-bottom: none; }
.hours .day { color: var(--ink-soft); }
.hours .hr { color: var(--evergreen); font-weight: 600; }
.hours .now { color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.hours .now::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hours .closed { color: var(--sage-light); }

/* Mapa */
.map-card { padding: 0; overflow: hidden; }
.map-card .map-frame { width: 100%; height: 260px; border: none; display: block; filter: grayscale(.15) contrast(1.02); }
.map-card .map-foot { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.map-card .map-foot b { font-size: 14.5px; color: var(--evergreen); }
.map-card .map-foot small { font-size: 12.5px; color: var(--sage); display: block; }

/* Promo premium w sidebarze */
.promo-premium { background: linear-gradient(150deg, #f7efe1, #efe3cd); border: 1px solid var(--bronze-ln); border-radius: var(--r-lg); padding: 22px; }
.promo-premium .pp-ic { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: grid; place-items: center; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.promo-premium .pp-ic svg { width: 21px; height: 21px; color: var(--premium); }
.promo-premium h4 { font-family: var(--serif); font-size: 19px; color: var(--evergreen); font-weight: 600; margin-bottom: 7px; }
.promo-premium p { font-size: 14px; color: var(--bronze-dk); margin-bottom: 16px; }

/* ---------- Fade-in ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================================================================
   KATALOG / LISTING
   =================================================================== */
.katalog-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); padding-bottom: 30px; }
.katalog-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; margin: 8px 0 6px; }
.katalog-filtry { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; margin-top: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; box-shadow: var(--shadow-sm); }
.kf-field { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--paper); min-width: 0; }
.kf-field svg { width: 18px; height: 18px; color: var(--bronze); flex-shrink: 0; }
.kf-field input, .kf-field select { border: none; background: none; font-family: var(--sans); font-size: 15px; color: var(--ink); width: 100%; min-width: 0; }
.kf-field :focus { outline: none; }
@media (max-width: 720px){ .katalog-filtry { grid-template-columns: 1fr 1fr; } .katalog-filtry .btn { grid-column: 1 / -1; } }

.katalog-layout { display: grid; grid-template-columns: 264px 1fr; gap: 34px; align-items: start; }
@media (max-width: 900px){ .katalog-layout { grid-template-columns: 1fr; } .katalog-aside { order: 2; } }

.katalog-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.kat-lista { display: flex; flex-direction: column; gap: 2px; }
.kat-lista a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14.5px; color: var(--ink-soft); transition: .18s; }
.kat-lista a:hover { background: var(--paper-2); color: var(--evergreen); }
.kat-lista a.active { background: var(--evergreen); color: #f2ede2; }
.kat-lista a span { font-size: 12.5px; color: var(--sage); background: var(--paper-2); padding: 2px 9px; border-radius: 999px; }
.kat-lista a.active span { background: rgba(255,255,255,.15); color: #e7ede8; }

.listings-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px){ .listings-2 { grid-template-columns: 1fr; } }
.listing-reklama { grid-column: 1 / -1; }

.paginacja { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.pag-info { font-size: 14px; color: var(--sage); }
.pusto { text-align: center; padding: 60px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pusto h3 { font-size: 22px; margin-bottom: 8px; }
.pusto p { margin-bottom: 20px; }

/* ===================================================================
   BLOG / ARTYKUŁ
   =================================================================== */
.posts-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px){ .posts-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .posts-3 { grid-template-columns: 1fr; } }

.blog-kat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.blog-kat-nav a { font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-soft); transition: .18s; }
.blog-kat-nav a:hover { border-color: var(--bronze-ln); color: var(--evergreen); }
.blog-kat-nav a.active { background: var(--evergreen); color: #f2ede2; border-color: var(--evergreen); }

.artykul { padding-top: 4px; }
.art-head { padding: 30px 0 24px; }
.art-head h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); font-weight: 400; line-height: 1.08; margin: 14px 0 16px; letter-spacing: -.02em; }
.art-meta { font-size: 14px; color: var(--sage); }
.spons-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bronze-dk); background: var(--premium-bg); border: 1px solid var(--bronze-ln); padding: 5px 12px; border-radius: 999px; }
.post-cat.spons { background: linear-gradient(135deg,#c8a878,var(--premium)); color: #fff; }
.art-lead { font-size: 20px; color: var(--ink-soft); margin-top: 20px; line-height: 1.5; font-family: var(--serif); font-style: italic; }
.art-hero { height: clamp(240px, 40vw, 440px); border-radius: var(--r-lg); background: var(--paper-2) center/cover no-repeat; margin: 8px 0 34px; box-shadow: var(--shadow-md); }

/* Treść (artykuł, regulamin, polityka) */
.tresc-body { font-size: 17.5px; line-height: 1.75; color: var(--ink-soft); }
.tresc-body h2 { font-size: 1.7rem; font-weight: 500; margin: 1.8em 0 .6em; color: var(--evergreen); }
.tresc-body h3 { font-size: 1.3rem; font-weight: 600; margin: 1.4em 0 .5em; color: var(--evergreen); }
.tresc-body p { margin: 0 0 1.1em; }
.tresc-body ul, .tresc-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.tresc-body li { margin-bottom: .5em; }
.tresc-body a { color: var(--bronze-dk); text-decoration: underline; text-underline-offset: 2px; }
.tresc-body blockquote { border-left: 3px solid var(--bronze-ln); padding: 6px 0 6px 22px; margin: 1.5em 0; font-family: var(--serif); font-style: italic; font-size: 1.2em; color: var(--evergreen); }
.tresc-body img { border-radius: var(--r-md); margin: 1.5em 0; }

/* ---------- Reklamy (tylko katalog / kategorie) ---------- */
.reklama-slot { position: relative; margin: 0 0 26px; padding: 10px; background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--r-md); text-align: center; overflow: hidden; }
.reklama-slot .reklama-label { position: absolute; top: 6px; right: 10px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-light); }
.reklama-baner img { display: block; margin: 0 auto; max-width: 100%; height: auto; border-radius: var(--r-sm); }
.reklama-sidebar { margin-bottom: 0; }
.reklama-kod { min-height: 90px; display: grid; place-items: center; }

/* ---------- Alerty / flash ---------- */
.alert { padding: 14px 18px; border-radius: var(--r-md); font-size: 15px; margin: 20px 0; border: 1px solid transparent; }
.alert-ok  { background: #e6efe7; color: #2f5a3e; border-color: #c5ddca; }
.alert-err { background: #f7e7e4; color: #8f3a2f; border-color: #e8c8c1; }

/* ---------- Banner firmy (gdy brak galerii) ---------- */
.firm-banner { margin-top: 12px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line);
  display: grid; place-items: center; height: clamp(220px, 30vw, 320px); overflow: hidden; }
.firm-banner img { max-width: 260px; max-height: 62%; width: auto; object-fit: contain; }

/* ---------- Formularze opinii / kontaktu ---------- */
.opinia-form { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.opinia-form .of-row { display: grid; grid-template-columns: 1fr 200px; gap: 12px; }
.kontakt-form { display: flex; flex-direction: column; gap: 14px; }
.kontakt-form .kf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opinia-form input, .opinia-form select, .opinia-form textarea,
.kontakt-form input, .kontakt-form textarea {
  width: 100%; font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px;
}
.kontakt-form input, .kontakt-form textarea { background: var(--paper); }
.opinia-form :focus, .kontakt-form :focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(169,133,95,.15); }
@media (max-width: 560px){ .opinia-form .of-row, .kontakt-form .kf-row { grid-template-columns: 1fr; } }

/* ---------- Formularze (dodaj firmę, panel) ---------- */
.form-firma { display: flex; flex-direction: column; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow-sm); }
.fl { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--evergreen); }
.fl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fl input, .fl textarea, .fl select {
  font-family: var(--sans); font-size: 15.5px; font-weight: 400; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; width: 100%;
}
.fl input[type="file"] { padding: 10px; font-size: 14px; background: var(--paper-2); }
.fl :focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(169,133,95,.15); }
.fl small { font-weight: 400; }
.fl-label { font-size: 14px; font-weight: 600; color: var(--evergreen); }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 400; font-size: 15px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; cursor: pointer; transition: .18s; }
.check:hover { border-color: var(--bronze-ln); }
.check input { width: 17px; height: 17px; accent-color: var(--bronze); }
@media (max-width: 560px){ .fl-row, .checks { grid-template-columns: 1fr; } }

/* ---------- Lenis smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Mobile nav panel ---------- */
.mnav { display: none; position: fixed; inset: 0; z-index: 100; }
.mnav.open { display: block; }
.mnav-bg { position: absolute; inset: 0; background: rgba(28,33,30,.4); backdrop-filter: blur(2px); }
.mnav-panel { position: absolute; top: 0; right: 0; width: min(320px, 86vw); height: 100%; background: var(--paper); box-shadow: var(--shadow-lg); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.mnav-panel .mn-close { align-self: flex-end; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 14px; }
.mnav-panel .mn-close svg { width: 20px; height: 20px; color: var(--evergreen); display:block; }
.mnav-panel a { padding: 13px 12px; border-radius: 10px; font-size: 17px; font-weight: 500; color: var(--evergreen); }
.mnav-panel a:hover { background: rgba(46,61,54,.06); }
.mnav-panel .btn { margin-top: 14px; }
