/* =========================================================
   Markowski Meble - arkusz stylow
   Struktura: 1) zmienne 2) reset 3) typografia 4) uklad
   5) naglowek 6) komponenty 7) sekcje 8) stopka 9) cookies
   10) responsywnosc
   ========================================================= */

/* 1) ZMIENNE ------------------------------------------------ */
:root {
  --ink: #17130f;
  --ink-2: #241d17;
  --ink-soft: #514639;
  --muted: #7a6d5e;
  --cream: #fbf8f4;
  --sand: #f1e9dd;
  --sand-2: #e4d8c6;
  --brass: #a3752f;
  --brass-2: #c6994f;
  --line: #e0d5c4;
  --line-dark: rgba(255, 255, 255, .14);
  --white: #fff;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --r: 3px;
  --shadow: 0 18px 50px -28px rgba(23, 19, 15, .45);
  --t: .28s cubic-bezier(.4, 0, .2, 1);
}

/* 2) RESET -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* 3) TYPOGRAFIA --------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.15em; }
.lead { font-size: 1.16rem; color: var(--ink-soft); }
.eyebrow {
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
  margin: 0 0 1.1rem;
  display: block;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--brass);
  vertical-align: middle;
  margin-right: .8rem;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.center .eyebrow::before { display: none; }

/* 4) UKLAD -------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.grid { display: grid; gap: 1.6rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.dark { background: var(--ink); color: var(--sand); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }
.dark .lead, .dark p { color: #cfc3b2; }
.dark .eyebrow { color: var(--brass-2); }
.dark .eyebrow::before { background: var(--brass-2); }
.tinted { background: var(--sand); }

/* 5) NAGLOWEK ----------------------------------------------- */
.topbar {
  background: var(--ink);
  color: #bcae9c;
  font-size: .82rem;
  letter-spacing: .02em;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--brass-2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 248, 244, .93);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; line-height: 1; }
.brand-sub { display: block; font-family: var(--sans); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .28rem; }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav > li { list-style: none; position: relative; }
.nav a {
  display: block;
  padding: .6rem .78rem;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--r);
  transition: color var(--t);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass); }
.nav ul { list-style: none; margin: 0; padding: .4rem; }
.has-sub > button {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem .78rem;
  background: none;
  border: 0;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  font-family: var(--sans);
}
.has-sub > button:hover { color: var(--brass); }
.has-sub > button svg { width: 10px; transition: transform var(--t); }
.has-sub[data-open="true"] > button svg { transform: rotate(180deg); }
.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--r);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: var(--t);
}
.has-sub[data-open="true"] .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { padding: .55rem .8rem; font-size: .9rem; }
.submenu a:hover { background: var(--sand); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: .5rem .7rem; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: var(--t); }

/* 6) KOMPONENTY --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  background: var(--brass);
  color: var(--white);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid var(--brass);
  border-radius: var(--r);
  transition: var(--t);
}
.btn:hover { background: #8d6226; border-color: #8d6226; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.dark .btn-ghost,
.hero .btn-ghost,
.page-head .btn-ghost,
.cta-band .btn-ghost { color: var(--white); border-color: var(--line-dark); }
.dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.page-head .btn-ghost:hover,
.cta-band .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.9rem;
  transition: var(--t);
}
a.card { text-decoration: none; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sand-2); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 0; }
.card .more { display: inline-block; margin-top: 1.1rem; font-size: .85rem; font-weight: 600; color: var(--brass); }
.tinted .card { background: var(--cream); }
.dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.dark .card p { color: #b6a894; }

.num { font-family: var(--serif); font-size: 2.6rem; color: var(--brass); line-height: 1; display: block; margin-bottom: .6rem; }

.figure { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--sand); }
.figure img { width: 100%; }
.figure figcaption { padding: .85rem 1.1rem; font-size: .84rem; color: var(--muted); background: var(--white); border-top: 1px solid var(--line); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery .figure img { aspect-ratio: 4 / 3; object-fit: cover; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .75rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(-45deg);
}

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 2.2rem 4.2rem; }
.steps > li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -.15rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--brass);
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.1rem;
  bottom: .4rem;
  width: 1px;
  background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.dark .steps > li::after { background: var(--line-dark); }
.steps h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.steps p { font-size: .96rem; margin-bottom: 0; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .9rem 0 0; font-size: .98rem; color: var(--ink-soft); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .95rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--sand); font-weight: 600; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }

.breadcrumbs { font-size: .82rem; color: var(--muted); padding: 1rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: .45rem; color: var(--line); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--brass); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.tags a {
  display: inline-block;
  padding: .42rem .85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .84rem;
  text-decoration: none;
  transition: var(--t);
}
.tags a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.note {
  border-left: 3px solid var(--brass);
  background: var(--sand);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--r) var(--r) 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { display: block; font-family: var(--serif); font-size: 1.12rem; margin-bottom: .3rem; }

/* 7) SEKCJE -------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: clamp(4rem, 11vw, 8.5rem) 0 clamp(3.5rem, 9vw, 7rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 78% 12%, rgba(198, 153, 79, .26), transparent 62%),
    url("/assets/img/grain.svg");
  opacity: .95;
}
.hero .wrap { position: relative; }
.hero h1, .hero h2, .hero h3 { color: var(--white); }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 56ch; color: #cec2b0; font-size: 1.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.hero-meta div { max-width: 200px; }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--brass-2); font-weight: 600; }
.hero-meta span { font-size: .86rem; color: #a99c8b; }

.page-head {
  background: var(--ink);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 90% at 85% 0%, rgba(198, 153, 79, .2), transparent 60%), url("/assets/img/grain.svg");
}
.page-head .wrap { position: relative; }
.page-head .breadcrumbs, .page-head .breadcrumbs a { color: #9d907f; }
.page-head .breadcrumbs li::after { color: #4a4038; }
.page-head h1, .page-head h2 { color: var(--white); }
.page-head h1 { margin-top: 1.4rem; max-width: 24ch; }
.page-head .lead { color: #cec2b0; max-width: 62ch; margin-bottom: 0; }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose > :first-child { margin-top: 0; }
.prose blockquote {
  margin: 2rem 0;
  padding: .3rem 0 .3rem 1.6rem;
  border-left: 3px solid var(--brass);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose a { color: var(--brass); text-underline-offset: 3px; }

.toc { background: var(--sand); border-radius: var(--r); padding: 1.5rem 1.8rem; margin-bottom: 2.5rem; }
.toc p { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .94rem; }
.toc li { margin-bottom: .3rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--brass); text-decoration: underline; }

.post-meta { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; }
.post-card time { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.post-card h3 { font-size: 1.32rem; margin: .5rem 0 .5rem; }

.locations { columns: 4; column-gap: 2rem; list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.locations li { margin-bottom: .55rem; break-inside: avoid; }
.locations a { text-decoration: none; color: var(--ink-soft); }
.locations a:hover { color: var(--brass); text-decoration: underline; }

.cta-band { background: var(--ink); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("/assets/img/grain.svg"); }
.cta-band .wrap { position: relative; }
.cta-band .btn-row { justify-content: center; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.contact-list a, .contact-list strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--brass); }

/* 8) STOPKA -------------------------------------------------- */
.site-footer { background: var(--ink); color: #a99c8b; padding: clamp(3rem, 7vw, 5rem) 0 2rem; font-size: .92rem; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { text-decoration: none; transition: color var(--t); }
.site-footer a:hover { color: var(--brass-2); }
.site-footer .brand-name { color: var(--white); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .84rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* 9) COOKIES ------------------------------------------------- */
.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: 640px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 24px 60px -20px rgba(23, 19, 15, .45);
  padding: 1.5rem 1.6rem;
  display: none;
}
.cookie-bar[data-visible="true"] { display: block; }
.cookie-bar h2 { font-size: 1.24rem; margin-bottom: .4rem; }
.cookie-bar p { font-size: .89rem; color: var(--ink-soft); margin-bottom: 1rem; }
.cookie-bar .btn { padding: .7rem 1.2rem; font-size: .86rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-prefs { margin: 0 0 1rem; padding: 0; list-style: none; display: none; }
.cookie-bar[data-prefs="true"] .cookie-prefs { display: block; }
.cookie-prefs li { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .86rem; }
.cookie-prefs input { margin-top: .35rem; }
.cookie-prefs strong { display: block; }
.cookie-link { background: none; border: 0; padding: .7rem .4rem; font-size: .86rem; color: var(--muted); text-decoration: underline; }
#cookie-save { display: none; }
.cookie-bar[data-prefs="true"] #cookie-save { display: inline-flex; }
.cta-band h1, .cta-band h2, .cta-band h3 { color: var(--white); }
.cta-band .lead, .cta-band p { color: #cec2b0; }

/* 10) RESPONSYWNOSC ------------------------------------------ */
@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .locations { columns: 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 2rem;
    gap: 0;
    max-height: 78vh;
    overflow-y: auto;
    display: none;
  }
  .site-header[data-open="true"] .nav { display: flex; }
  .nav > li { border-bottom: 1px solid var(--line); }
  .nav a, .has-sub > button { padding: .9rem .2rem; width: 100%; text-align: left; justify-content: space-between; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    background: transparent;
    display: none;
    padding: 0 0 .6rem .8rem;
  }
  .has-sub[data-open="true"] .submenu { display: block; }
  .split, .g2, .g3, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .topbar .wrap { justify-content: center; font-size: .78rem; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .g4, .gallery { grid-template-columns: 1fr; }
  .locations { columns: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.5rem; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: .54rem; letter-spacing: .16em; }
  .site-header .wrap { min-height: 66px; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
