/* Meble Stach – style strony publicznej */
:root {
  --orange: #e8501c;
  --orange-dark: #c93f10;
  --ink: #232323;
  --muted: #5d5d5d;
  --line: #e4dfd8;
  --paper: #f7f5f2;
  --white: #fff;
  --green: #5cba3c;
  --blue: #1b63b8;
  --radius: 6px;
  --wrap: 1180px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-underline-offset: .15em; }
a:hover { color: var(--orange); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.2vw + .6rem, 2.7rem); }
h2 { font-size: clamp(1.4rem, 1.6vw + .8rem, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #000; color: #fff; padding: 8px 14px; }
:focus-visible { outline: 3px solid #1b63b8; outline-offset: 2px; }

/* ---------- nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { font-size: 1.75rem; font-weight: 600; color: var(--orange); text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--orange-dark); }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav > ul > li { position: relative; }
.nav a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-size: 1rem; border-radius: var(--radius); }
.nav a:hover, .nav li.active > a { color: var(--orange); }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sub { position: absolute; left: 0; top: 100%; min-width: 250px; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 14px 30px rgba(0,0,0,.12); padding: 8px 0 !important; display: none !important; flex-direction: column; align-items: stretch !important; gap: 0 !important; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: flex !important; }
.sub a { padding: 9px 20px; font-size: .96rem; }
.sub-toggle, .burger { display: none; }
.head-phone { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; }
.head-phone:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- przyciski ---------- */
.btn { display: inline-block; background: var(--orange); color: #fff !important; padding: 11px 24px; border-radius: var(--radius); text-decoration: none; font-weight: 600; border: 2px solid var(--orange); cursor: pointer; font: inherit; font-weight: 600; line-height: 1.3; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-green { background: var(--green); border-color: var(--green); text-transform: uppercase; font-size: .9rem; letter-spacing: .02em; padding: 10px 28px; }
.btn-green:hover { background: #4aa22d; border-color: #4aa22d; }
.btn-light { background: #fff; color: var(--orange-dark) !important; border-color: #fff; }
.btn-light:hover { background: #fff3ee; border-color: #fff3ee; }
.btn-ghost { background: transparent; color: var(--orange-dark) !important; }
.btn-ghost:hover { background: #fff3ee; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.8); }
.btn-ghost-light:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ---------- slider ---------- */
.hero { position: relative; background: #222; overflow: hidden; }
.slides { position: relative; height: clamp(440px, 62vh, 640px); }
.slide { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; display: flex; align-items: flex-end; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)); }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-in { position: relative; padding-bottom: 54px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.slide-text { max-width: 500px; margin: 0; padding: 16px 18px; background: rgba(0,0,0,.62); border: 2px solid #2d5f9a; color: #fff; font: 600 .95rem/1.55 Roboto, var(--font); text-align: justify; }
.slide-h1 { margin: 0; max-width: 100%; padding: 12px 22px; background: rgba(27,99,184,.82); color: #eef2fb; font-size: clamp(1.5rem, 3.6vw, 3.1rem); text-transform: uppercase; letter-spacing: -.01em; }
.slide-h2 { margin: -6px 0 0; padding: 8px 22px; background: rgba(27,99,184,.55); color: #cfe6ff; font-weight: 700; font-size: clamp(1rem, 2vw, 1.7rem); text-transform: uppercase; }
.sl-prev, .sl-next { position: absolute; top: 50%; z-index: 3; width: 48px; height: 64px; margin-top: -32px; border: 0; background: transparent; cursor: pointer; }
.sl-prev { left: 10px; } .sl-next { right: 10px; }
.sl-prev span, .sl-next span { display: block; width: 22px; height: 22px; margin: auto; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(45deg); filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.sl-next span { transform: rotate(-135deg); }
.sl-prev:hover span, .sl-next:hover span { border-color: var(--orange); }
.dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; gap: 10px; justify-content: center; }
.dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.dots button.on { background: #fff; }

/* ---------- komunikat ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; justify-content: center; background: #fdebe4; border-bottom: 1px solid #f5c9b8; color: #b3270a; padding: 12px 20px; text-align: center; font-size: 1.05rem; font-weight: 600; }
.notice p { margin: 0; max-width: 980px; }
.notice button { background: none; border: 0; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }

/* ---------- karty na Home ---------- */
.cards-sec { padding-top: 44px; padding-bottom: 20px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { display: grid; grid-template-columns: 42% 1fr; background: var(--paper); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.card-img { display: block; min-height: 280px; position: relative; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; }
.card-body h2 { font-size: 1.55rem; text-align: center; }
.card-body h2 a { color: var(--ink); text-decoration: none; }
.card-body h2 a:hover { color: var(--orange); }
.card-body p { color: #333; font-size: .98rem; text-align: left; flex: 1; }
.card-body .btn { align-self: flex-start; padding: 8px 20px; }

.motto { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 36px; text-align: center; padding: 44px 0; }
.motto p { margin: 0; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; }
.words { color: var(--blue); display: inline-block; min-width: 4ch; border-bottom: 4px solid rgba(27,99,184,.25); transition: opacity .35s; }
.words.fade { opacity: 0; }

.brands { padding-top: 48px; padding-bottom: 48px; text-align: center; }
.brands h2 { font-size: 1.2rem; color: var(--muted); font-weight: 600; }
.brands ul { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px 44px; justify-content: center; align-items: center; }
.brands img { height: 46px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.brands img:hover { filter: none; opacity: 1; }

/* ---------- strony treści ---------- */
.crumbs { padding-top: 18px; padding-bottom: 6px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page, .contact, section.wrap > h1 { padding-bottom: 16px; }
.page-grid { display: grid; gap: 36px; align-items: start; }
.page.has-img .page-grid { grid-template-columns: minmax(280px, 40%) 1fr; }
.page-img { margin: 0; position: sticky; top: 90px; }
.page-img img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; color: #111; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.page-plain { padding-top: 60px; padding-bottom: 60px; }
.lead { color: var(--muted); font-size: 1.1rem; }
.page-gal { margin-top: 54px; }

/* kafelki: co robimy / galeria */
.tiles { list-style: none; margin: 24px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.tile a { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: #ddd; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile a:hover img { transform: scale(1.05); }
.tile-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; color: #fff; font-weight: 700; font-size: 1.15rem; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.tile p { margin: 10px 2px 0; color: var(--muted); font-size: .95rem; }

/* galeria */
.chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: block; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .95rem; background: #fff; }
.chips a:hover { border-color: var(--orange); color: var(--orange); }
.chips a.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #e8e4de; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.grid a:hover img { transform: scale(1.06); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 30px; }
.pager a, .pager span { min-width: 40px; text-align: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pager .on { background: var(--orange); color: #fff; border-color: var(--orange); }

.lb { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 94vw; max-height: 88vh; object-fit: contain; box-shadow: 0 0 40px rgba(0,0,0,.6); }
.lb button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.lb button:hover { background: rgba(255,255,255,.28); }
.lb .x { top: 16px; right: 16px; } .lb .p { left: 14px; top: 50%; margin-top: -24px; } .lb .n { right: 14px; top: 50%; margin-top: -24px; }
.lb .c { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .9rem; }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin-top: 22px; }
.contact-card p:last-child { margin-bottom: 0; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; box-shadow: 0 8px 26px rgba(0,0,0,.06); }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; font-weight: 400; border: 1px solid #c9c3ba; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { border-color: var(--orange); outline: 0; box-shadow: 0 0 0 3px rgba(232,80,28,.2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.small { font-size: .85rem; color: var(--muted); }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert p { margin: 0; }
.alert.ok { background: #e6f4e1; color: #1f5a10; border: 1px solid #b9dcae; }
.alert.err { background: #fdeceb; color: #8e1d12; border: 1px solid #f0bdb8; }

/* ---------- CTA i stopka ---------- */
.cta { background: var(--orange); color: #fff; margin-top: 56px; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-top: 34px; padding-bottom: 34px; }
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { background: #222; color: #cfcfcf; font-size: .96rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb59a; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: .8em; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-top: 44px; padding-bottom: 30px; }
address { font-style: normal; line-height: 1.8; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin-bottom: 6px; }
.foot-links { border-top: 1px solid #3a3a3a; padding-top: 18px; padding-bottom: 26px; text-align: center; font-size: .9rem; }
.foot-links p { margin: 0 0 10px; }
.foot-tags { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.foot-tags li a { display: block; padding: 4px 12px; border: 1px solid #4a4a4a; border-radius: 999px; background: #2c2c2c; color: #d8d8d8; font-size: .85rem; text-decoration: none; }
.foot-tags li a:hover, .foot-tags li a:focus-visible { border-color: #e8501c; color: #fff; }
.seo-links { margin-top: 4px; }
.foot-banner img { margin: 0 auto; max-width: 100%; height: auto; }
.copy { color: #8d8d8d; }

/* ---------- responsywność ---------- */
@media (max-width: 1020px) {
  .head-phone { display: none; }
  .burger { display: flex; margin-left: auto; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 11px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
  .burger span { display: block; height: 2px; background: var(--ink); transition: .2s; }
  .burger[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(0,0,0,.12); display: none; max-height: calc(100vh - 68px); overflow: auto; margin: 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px 14px; }
  .nav a { padding: 12px 10px; }
  .nav li { position: relative; }
  .has-sub > a::after { display: none; }
  .has-sub > a { padding-right: 56px; }
  .sub-toggle { display: block; position: absolute; right: 0; top: 2px; width: 48px; height: 44px; background: none; border: 0; cursor: pointer; }
  .sub-toggle::after { content: ""; display: block; width: 9px; height: 9px; margin: 0 auto 4px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: .2s; }
  .has-sub.open > .sub-toggle::after { transform: rotate(-135deg); margin-bottom: -2px; }
  .sub { position: static; min-width: 0; box-shadow: none; border: 0; border-left: 3px solid var(--line); margin-left: 10px; border-radius: 0; padding: 0 !important; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none !important; }
  .has-sub.open > .sub { display: flex !important; }
  .cards { grid-template-columns: 1fr; }
  .page.has-img .page-grid { grid-template-columns: 1fr; }
  .page-img { position: static; max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .brand { font-size: 1.5rem; }
  .card { grid-template-columns: 1fr; }
  .card-img { min-height: 0; aspect-ratio: 16/10; }
  .cols { grid-template-columns: 1fr; gap: 26px; }
  .two { grid-template-columns: 1fr; }
  .slides { height: 520px; }
  .slide-text { font-size: .85rem; padding: 12px 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .sl-prev, .sl-next { width: 36px; }
  .notice { font-size: .95rem; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .hero, .cta, .site-footer, .notice { display: none; }
}

/* mapa strony */
.sitemap { list-style: none; padding: 0; margin: 20px 0; }
.sitemap ul { list-style: none; padding-left: 1.4em; margin: .3em 0 .6em; border-left: 3px solid var(--line); }
.sitemap li { margin: .35em 0; }