/* ==========================================================================
   M Studio – arkusz stylów
   Paleta odczytana z logo (szczotkowane złoto + butelkowa zieleń).
   Aby zmienić kolorystykę, edytuj tylko zmienne w :root.
   ========================================================================== */

:root {
  /* Kolory marki */
  --primary: #C5A572;          /* złoto – belki sygnetu */
  --primary-light: #E6CB95;    /* złoto – odblask */
  --primary-dark: #A88A58;     /* złoto – cień */
  --secondary: #123F3C;        /* ciemna zieleń – ukośna belka */
  --accent: #2F5E58;           /* jasna zieleń – romb */

  /* Neutralne */
  --bg: #0B1716;               /* tło strony (ściana z logo) */
  --bg-alt: #0F1F1E;           /* tło sekcji naprzemiennych */
  --surface: #142826;          /* karty */
  --surface-2: #1A3230;        /* karty – hover */
  --text: #F2EEE6;             /* tekst główny */
  --text-muted: #A9B5B1;       /* tekst pomocniczy */
  --border: rgba(197, 165, 114, .16);
  --border-strong: rgba(197, 165, 114, .38);
  --danger: #F2A08F;
  --success: #8FD3B6;

  --gold-gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 45%, var(--primary-dark) 72%, #D9BC85 100%);

  /* Typografia */
  --font-display: "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, sans-serif;

  /* Układ – ostre, geometryczne logo = małe promienie zaokrągleń */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 6px;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --header-h: 84px;
  --header-h-small: 64px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h-small); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -.015em; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.85rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }

::selection { background: var(--primary); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  padding: .75rem 1.25rem; background: var(--primary); color: var(--bg);
  font-weight: 600; text-decoration: none; border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }

.text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem;
  font-family: var(--font-display); font-size: .78rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--primary);
}
/* skośna kreska – powtórzenie ściętej belki sygnetu */
.eyebrow::before {
  content: ""; width: 26px; height: 10px; flex: none;
  background: var(--gold-gradient);
  clip-path: polygon(0 0, 30% 0, 100% 100%, 0 100%);
}

/* ---------- Przyciski ---------- */
.btn {
  --_bg: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.6rem;
  border: 1px solid transparent; border-radius: var(--radius);
  background: var(--_bg);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
  overflow: hidden;
}
.btn-primary { background: var(--gold-gradient); background-size: 160% 160%; background-position: 0 0; color: #0B1716; }
.btn-primary:hover { background-position: 100% 100%; transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(197, 165, 114, .55); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(197, 165, 114, .06); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Nagłówek
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
/* tło z rozmyciem na pseudo-elemencie – backdrop-filter na samym nagłówku
   zamknąłby w nim menu mobilne (position: fixed) */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 23, 22, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0; transition: opacity .3s;
}
.site-header.is-scrolled::before, .nav-open .site-header::before { opacity: 1; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.is-scrolled .header-inner { height: var(--header-h-small); }
.brand { display: block; flex: none; padding: 6px 0; /* pole ochronne logo */ }
.brand img { height: 44px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .brand img { height: 34px; }

.nav-list a {
  position: relative; display: block; padding: .5rem 0;
  font-family: var(--font-display); font-size: .92rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none; transition: color .2s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--text); }
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
  width: 48px; height: 48px; padding: 12px; margin-right: -12px;
  background: none; border: 0;
}
.nav-toggle-bar { display: block; height: 2px; width: 24px; background: var(--primary); transition: transform .3s var(--ease), opacity .2s, width .3s; }
.nav-toggle-bar:nth-child(2) { width: 16px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menu mobilne */
@media (max-width: 1023.98px) {
  .nav {
    position: fixed; inset: var(--header-h-small) 0 0 0; z-index: 99;
    display: flex; flex-direction: column; gap: 2rem;
    padding: 2rem var(--gutter) 3rem;
    background: rgba(11, 23, 22, .97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .site-header:not(.is-scrolled) .nav { top: var(--header-h); }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { display: grid; gap: .25rem; }
  .nav-list a { font-size: 1.5rem; padding: .6rem 0; color: var(--text); border-bottom: 1px solid var(--border); }
  .nav-list a::after { display: none; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; margin-left: auto; }
  .nav-list { display: flex; gap: 2rem; }
  .nav-cta-mobile, .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(2.5rem, 8vw, 6rem)) 0 clamp(4rem, 9vw, 7rem);
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 75% 45%, rgba(197, 165, 114, .20), transparent 38%),
    radial-gradient(circle at 90% 10%, rgba(47, 94, 88, .45), transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(18, 63, 60, .55), transparent 45%);
  /* płynne przejście w tło kolejnej sekcji */
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
}
/* delikatna siatka skosów – linie pod kątem belek sygnetu */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background: repeating-linear-gradient(46deg, var(--primary) 0 1px, transparent 1px 90px);
  -webkit-mask-image: radial-gradient(circle at 70% 50%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 70% 50%, #000, transparent 70%);
}
.hero-inner { display: grid; gap: 3rem; align-items: center; }
.hero h1 {
  font-size: clamp(2.3rem, 1.2rem + 5vw, 4.4rem);
  line-height: 1.06; letter-spacing: -.03em; margin-bottom: 1.5rem; max-width: 14ch;
}
.hero-lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--text-muted); max-width: 54ch; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-visual { position: relative; display: grid; place-items: center; order: -1; }
.hero-mark { position: relative; width: min(58vw, 260px); }
.hero-mark::before {
  content: ""; position: absolute; inset: -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 165, 114, .28), rgba(47, 94, 88, .18) 40%, transparent 68%);
  filter: blur(10px);
  animation: glow 6s ease-in-out 1.2s infinite alternate;
}
.hero-mark img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
/* animacje wejścia sekcji hero */
.js .hero-mark img { animation: mark-in 1.2s var(--ease) .15s both; }
.js .hero-content > * { animation: fade-up .7s var(--ease) calc(var(--i, 0) * 70ms) both; }
.hero-content > :nth-child(2) { --i: 1; }
.hero-content > :nth-child(3) { --i: 2; }
.hero-content > :nth-child(4) { --i: 3; }

@keyframes mark-in {
  from { opacity: 0; transform: translateY(24px) scale(.94); clip-path: inset(100% 0 0 0); }
  to   { opacity: 1; transform: none; clip-path: inset(-10% -10% -10% -10%); }
}
@keyframes glow { from { opacity: .7; transform: scale(.95); } to { opacity: 1; transform: scale(1.05); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .hero-visual { order: 0; }
  .hero-mark { width: min(100%, 420px); }
}

/* ==========================================================================
   Sekcje – wspólne
   ========================================================================== */
.section { position: relative; isolation: isolate; overflow-x: clip; padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-lead { color: var(--text-muted); font-size: 1.08rem; }

/* Znak wodny z sygnetem (krycie ok. 4%) */
.has-watermark::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -6%; top: 8%;
  width: min(60vw, 620px); aspect-ratio: 100 / 87;
  background: url("../assets/sygnet.svg") no-repeat center / contain;
  opacity: .04;
}
.watermark-left::before { right: auto; left: -8%; top: auto; bottom: 6%; }

/* Separator sekcji – złota linia ze skośnym łącznikiem jak w sygnecie */
.divider { display: flex; align-items: center; justify-content: center; gap: 0; padding-inline: var(--gutter); }
.divider::before, .divider::after {
  content: ""; height: 1px; flex: 1; max-width: 420px;
  background: linear-gradient(90deg, transparent, var(--border-strong));
}
.divider::after { background: linear-gradient(90deg, var(--border-strong), transparent); }
.divider span {
  width: 34px; height: 30px; margin-inline: 1rem;
  background: url("../assets/sygnet.svg") no-repeat center / contain;
  opacity: .9;
}

/* ==========================================================================
   Oferta – karty
   ========================================================================== */
.cards-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; overflow: hidden;
  padding: 2rem 1.75rem;
  background: linear-gradient(160deg, var(--surface), rgba(20, 40, 38, .4));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform .35s var(--ease), border-color .35s, background-color .35s, box-shadow .35s;
}
/* ścięty narożnik – echo skosu belek logo */
.card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 56px; height: 56px;
  background: linear-gradient(225deg, rgba(197, 165, 114, .22) 0 50%, transparent 50%);
  transition: width .35s var(--ease), height .35s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card:hover::after { width: 72px; height: 72px; }
.card h3 { margin: 1.4rem 0 .6rem; }
.card p { color: var(--text-muted); font-size: .97rem; }

.icon {
  width: 44px; height: 44px;
  fill: none; stroke: rgba(242, 238, 230, .82); stroke-width: 1.6; stroke-linejoin: miter; stroke-linecap: square;
  --icon-acc: var(--primary);   /* druga linia ikon – złoto z logo */
}
.icon-sm { width: 34px; height: 34px; flex: none; }
.icon-xs { width: 20px; height: 20px; flex: none; }
.card .icon { padding: 10px; width: 56px; height: 56px; background: rgba(18, 63, 60, .6); border: 1px solid var(--border); border-radius: var(--radius); }

/* ==========================================================================
   O nas
   ========================================================================== */
.about { display: grid; gap: 3rem; }
.about-text p:not(.eyebrow) { color: var(--text-muted); margin-top: 1.1rem; max-width: 60ch; }
.about-text h2 { margin-bottom: .5rem; }
.about-figure {
  margin-top: 2rem; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--border); aspect-ratio: 16 / 9;
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-figure:hover img { transform: scale(1.04); }

.features { display: grid; gap: 1rem; align-content: start; }
.feature {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: var(--radius); background: rgba(20, 40, 38, .45);
  transition: background-color .3s, transform .3s var(--ease);
}
.feature:hover { background: var(--surface); transform: translateX(4px); }
.feature h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.feature p { color: var(--text-muted); font-size: .94rem; }
@media (min-width: 640px) and (max-width: 1023.98px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .about { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }

/* ==========================================================================
   Realizacje
   ========================================================================== */
.work-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-inline: auto; } }
.work { transition: opacity .3s, transform .3s var(--ease); }

.work-link { display: block; text-decoration: none; border-radius: var(--radius-lg); }
/* ==========================================================================
   Proces – oś czasu
   ========================================================================== */
.timeline { position: relative; display: grid; gap: 1.75rem; counter-reset: step; }
.timeline::before {
  content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(var(--primary), var(--accent), transparent);
}
.step { position: relative; padding-left: 4.5rem; }
.step-num {
  position: absolute; left: 0; top: -.2rem;
  display: grid; place-items: center; width: 48px; height: 48px;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--bg);
  background: var(--gold-gradient);
  /* równoległobok – kształt belek sygnetu */
  clip-path: polygon(0 0, 100% 22%, 100% 100%, 0 100%);
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--text-muted); font-size: .96rem; }

@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .timeline::before { left: 24px; right: 0; top: 23px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--primary), var(--accent) 70%, transparent); }
  .step { padding-left: 0; padding-top: 4.5rem; }
  .step-num { top: 0; }
}

/* ==========================================================================
   Wycena
   ========================================================================== */
.quote-panel { display: grid; justify-items: center; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.quote-panel p { max-width: 62ch; color: var(--text-muted); }

/* ==========================================================================
   FAQ – akordeon
   ========================================================================== */
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-heading { font-size: inherit; }
.acc-trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  width: 100%; padding: 1.4rem 0; text-align: left;
  background: none; border: 0;
  font-family: var(--font-display); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); font-weight: 500;
  transition: color .2s;
}
.acc-trigger:hover { color: var(--primary-light); }
.acc-icon { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid var(--border-strong); border-radius: var(--radius); transition: background-color .3s, border-color .3s; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px;
  background: var(--primary); transform: translate(-50%, -50%); transition: transform .3s var(--ease), background-color .3s;
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon { background: var(--primary); border-color: var(--primary); }
.acc-trigger[aria-expanded="true"] .acc-icon::before, .acc-trigger[aria-expanded="true"] .acc-icon::after { background: var(--bg); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel { padding: 0 3.5rem 1.5rem 0; color: var(--text-muted); }
.acc-panel.is-animating { overflow: hidden; transition: height .35s var(--ease); }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .contact { grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; } }
.contact-card {
  display: grid; justify-items: start; align-content: start; gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.contact-card h3 { font-size: 1.2rem; }
.contact-card p { max-width: 58ch; color: var(--text-muted); }
.contact-info {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(18, 63, 60, .55), rgba(20, 40, 38, .3));
}
.contact-mark { width: 56px; margin-bottom: 1.5rem; }
.contact-info h3 { font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; }
.contact-list { display: grid; gap: .9rem; margin-bottom: 1.25rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; transition: color .2s; }
.contact-list a:hover { color: var(--primary-light); }

/* ==========================================================================
   Stopka
   ========================================================================== */
.site-footer {
  position: relative; overflow: hidden;
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg), #081110);
}
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; } }
.footer-brand img { width: 124px; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--text-muted); font-size: .94rem; max-width: 36ch; }
.footer-title { font-family: var(--font-display); font-size: .82rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin-bottom: 1.1rem; }
.footer-links { display: grid; gap: .55rem; font-size: .95rem; color: var(--text-muted); overflow-wrap: anywhere; }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem; border-top: 1px solid var(--border);
  font-size: .86rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); transition: color .2s; }
.footer-bottom a:hover { color: var(--primary-light); }

/* ---------- Facebook Messenger ---------- */
.messenger-fab {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-width: 56px; min-height: 56px; padding: .8rem 1.1rem;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  background: linear-gradient(135deg, #00B2FF 0%, #0878E8 55%, #006AFF 100%);
  color: #fff; font-weight: 600; font-size: .95rem; line-height: 1; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 106, 255, .3), 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s var(--ease);
}
.messenger-fab:hover { transform: translateY(-3px); filter: brightness(1.06); box-shadow: 0 12px 30px rgba(0, 106, 255, .38), 0 3px 8px rgba(0, 0, 0, .2); }
.messenger-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #0878E8, 0 8px 24px rgba(0, 106, 255, .3); }
.messenger-fab-icon { width: 25px; height: 25px; flex: 0 0 auto; }
@media (max-width: 639.98px) {
  .messenger-fab { width: 58px; height: 58px; min-width: 58px; min-height: 58px; padding: 0; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); }
  .messenger-fab span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .messenger-fab-icon { width: 28px; height: 28px; }
}

/* ---------- Przycisk „do góry” ---------- */
.to-top {
  position: fixed; right: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-right)); bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.5rem); z-index: 90;
  display: grid; place-items: center; align-content: center; gap: 2px;
  width: 56px; height: 56px;
  background: rgba(11, 23, 22, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s, border-color .3s, box-shadow .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--primary); box-shadow: 0 10px 30px -10px rgba(197, 165, 114, .5); transform: translateY(-3px); }
.to-top img { width: 26px; }
.to-top-arrow { width: 14px; height: 14px; fill: none; stroke: var(--primary); stroke-width: 2.4; transition: transform .3s var(--ease); }
.to-top:hover .to-top-arrow { transform: translateY(-2px); }

/* ---------- Pojawianie się przy przewijaniu ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Strona nieznaleziona ---------- */
.error-page { min-height: 70vh; display: grid; align-content: center; padding-block: var(--section-y); }
.error-page h1 { margin-bottom: 1rem; font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); }
.error-page p:not(.eyebrow) { max-width: 58ch; margin-bottom: 1.75rem; color: var(--text-muted); }
