/* ==========================================================================
   GALWANIZERNIA, Chełmek
   Antracyt, mosiądz i stal. Kolory wzięte z wizytówki i tablicy firmy.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokeny */

:root {
  --ink:        #0b0b0c;
  --ink-2:      #101012;
  --ink-3:      #151518;
  --ink-4:      #1d1d21;

  --cream:      #f3efe7;
  --cream-2:    #e6e0d3;

  --brass:      #c8944a;
  --brass-2:    #e3bd80;
  --brass-3:    #8b6a33;

  --text:       #edebe7;
  --muted:      #a3a09a;
  --muted-2:    #74716b;

  --ink-text:   #15151a;
  --ink-muted:  #5c584f;

  --line:       rgba(255, 255, 255, 0.09);
  --line-2:     rgba(255, 255, 255, 0.17);
  --line-dark:  rgba(24, 20, 14, 0.14);
  --line-dark-2:rgba(24, 20, 14, 0.26);

  --shell:      1200px;
  --r:          18px;
  --r-sm:       12px;

  --font-sans:  "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-label: "Space Grotesk", "Archivo", "Segoe UI", Arial, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, Consolas, "Courier New", monospace;

  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);

  --metal: linear-gradient(100deg,
      #8f7343 0%, #e6c68b 16%, #fff4da 30%,
      #d9b072 46%, #8a6a35 60%, #e2c188 78%, #b08c4c 100%);
}

/* ---------------------------------------------------------------- 2. Reset */

* { box-sizing: border-box; }

/* Musi wygrać z regułami display w komponentach, inaczej [hidden] nie działa. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Kolory poświaty w tle. Rejestracja przez @property pozwala je płynnie
   przenikać, zwykłe zmienne CSS nie dają się animować. */
@property --amb-warm {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(200, 148, 74, 0.10);
}

@property --amb-cool {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(122, 146, 172, 0.08);
}

body {
  --amb-warm: rgba(200, 148, 74, 0.10);
  --amb-cool: rgba(122, 146, 172, 0.08);
  transition: --amb-warm 0.85s ease, --amb-cool 0.85s ease;
}

/* Najechanie na powłokę przebarwia tło całej strony na kolor tego metalu. */
body:has(.coating--zinc:hover) {
  --amb-warm: rgba(150, 175, 198, 0.15);
  --amb-cool: rgba(150, 175, 198, 0.11);
}

body:has(.coating--tin:hover) {
  --amb-warm: rgba(206, 214, 222, 0.14);
  --amb-cool: rgba(206, 214, 222, 0.10);
}

body:has(.coating--copper:hover) {
  --amb-warm: rgba(226, 150, 96, 0.19);
  --amb-cool: rgba(226, 150, 96, 0.11);
}

body:has(.coating--nickel:hover) {
  --amb-warm: rgba(219, 211, 194, 0.15);
  --amb-cool: rgba(219, 211, 194, 0.10);
}

/* Poświaty w tle całej strony, pod treścią, w powolnym ruchu. */
body::before {
  content: "";
  position: fixed;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(30% 26% at 12% 20%, var(--amb-warm), transparent 68%),
    radial-gradient(34% 30% at 88% 46%, var(--amb-warm), transparent 70%),
    radial-gradient(30% 28% at 20% 74%, var(--amb-cool), transparent 70%),
    radial-gradient(26% 24% at 80% 92%, var(--amb-warm), transparent 70%);
  animation: pageDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 18px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p { margin: 0 0 18px; }

::selection { background: var(--brass); color: #17110a; }

:focus-visible {
  outline: 2px solid var(--brass-2);
  outline-offset: 3px;
}

/* --------------------------------------------------- 3. Animacje i błyski */

html.reveal-ready [data-reveal] {
  transform: translateY(26px);
}

html.reveal-ready [data-reveal]:where(.reveal-pending) { opacity: 0; }

html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

/* Mosiężny błysk przejeżdżający po tekście z lewej do prawej.
   Gradient ma 300% szerokości, a pozycje 0% i 100% wciąż zakrywają cały napis.
   Dzięki temu tekst nigdy nie robi się przezroczysty w miejscu bez tła. */
@keyframes sweep {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

/* Błysk przejeżdżający po całym kafelku, też z lewej do prawej. */
@keyframes cellSweep {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

@keyframes slowSheen {
  0%, 12%   { background-position: 0% 0; }
  58%, 100% { background-position: 100% 0; }
}

/* Poświata w tle hero, w ciągłym ruchu. */
@keyframes heroDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-4%, 3%, 0) scale(1.09); }
  100% { transform: translate3d(3.5%, -2.5%, 0) scale(1.03); }
}

/* Ta sama poświata, ale rozłożona na całej stronie, nie tylko u góry. */
@keyframes pageDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.07); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.02); }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes btnShine {
  from { left: -70%; }
  to   { left: 130%; }
}

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- 4. Elementy */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 22px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
  flex-shrink: 0;
}

em, .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

.section {
  padding: 108px 0;
  position: relative;
}

.section--tight { padding: 78px 0; }
.section--line { border-top: 1px solid var(--line); }

.section-head {
  max-width: 660px;
  margin-bottom: 58px;
}

.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.section-head--split > div { max-width: 620px; }

/* Przyciski */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s var(--ease), background 0.22s ease,
              border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.btn svg { width: 14px; height: 14px; flex-shrink: 0; position: relative; }

.btn--brass {
  background: linear-gradient(180deg, var(--brass-2), var(--brass));
  color: #1a1207;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
              0 6px 18px rgba(200, 148, 74, 0.22);
}

.btn--brass::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -70%;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.btn--brass:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5),
              0 12px 26px rgba(200, 148, 74, 0.32);
}

.btn--brass:hover::after { animation: btnShine 0.75s var(--ease); }

.btn--ghost {
  border-color: var(--line-2);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--brass);
  color: var(--brass-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.btn--ink {
  background: var(--ink);
  color: var(--cream);
}

.btn--ink:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ------------------------------------------------------------- 5. Nagłówek */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 11, 12, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 11, 12, 0.95);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease);
}

.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }

.brand-text { display: flex; flex-direction: column; line-height: 1; }

/* Sygnet słowny odwzorowuje metaliczny napis z wizytówki firmy. */
.brand-word {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: 0.045em;
  background: var(--metal);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 0.7s var(--ease);
}

.brand:hover .brand-word { background-position: 100% 0; }

.brand-sub {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.main-nav a:not(.btn) {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--brass);
  transition: right 0.32s var(--ease);
}

.main-nav a:not(.btn):hover { color: var(--text); }
.main-nav a:not(.btn):hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ----------------------------------------------------------------- 6. Hero */

.hero {
  position: relative;
  padding: 92px 0 84px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -12% auto -12%;
  height: 150%;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 80% 8%, rgba(200, 148, 74, 0.24), transparent 62%),
    radial-gradient(46% 42% at 8% 92%, rgba(122, 146, 172, 0.14), transparent 66%);
  animation: heroDrift 11s ease-in-out infinite alternate;
  will-change: transform;
}

/* Podkreślenie akcentowanego słowa w nagłówku, rysowane po wejściu na stronę. */
.marked {
  position: relative;
  display: inline-block;
}

.mark-line {
  position: absolute;
  left: -2%;
  width: 104%;
  bottom: -0.29em;
  height: 0.2em;
  overflow: visible;
  fill: none;
  stroke: var(--brass-2);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 232;
  stroke-dashoffset: 232;
  animation: drawLine 1.15s var(--ease) 0.45s forwards;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.1rem);
  margin-bottom: 26px;
}

.hero h1 em { color: var(--brass-2); }

.hero .lede {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero .lede strong { color: var(--text); font-weight: 600; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 38px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-meta li {
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero-meta strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-top: 5px;
}

/* Panel z zakresem powłok */

.plate {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(200, 148, 74, 0.09), transparent 60%),
    linear-gradient(170deg, #1a1a1f 0%, #101013 60%, #0d0d0f 100%);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 30px 28px;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.62),
    0 8px 22px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.plate::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 189, 128, 0.55), transparent);
}

.plate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.plate-head .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px rgba(200, 148, 74, 0.16), 0 0 12px rgba(227, 189, 128, 0.5);
  display: inline-block;
  margin-right: 9px;
  vertical-align: middle;
}

.plate-list { list-style: none; margin: 0; padding: 0; }

.plate-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 14px;
  margin: 0 -14px;
  border-radius: 13px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

.plate-list li:last-child { border-bottom: none; }

.plate-list li:hover {
  background: linear-gradient(90deg, rgba(200, 148, 74, 0.09), rgba(255, 255, 255, 0.02));
  transform: translateX(4px);
}

.plate-list .name {
  font-weight: 600;
  font-size: 1rem;
  display: block;
  transition: color 0.25s ease;
}

.plate-list li:hover .name { color: var(--brass-2); }

.plate-list .desc {
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
  display: block;
}

.swatch {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -7px 12px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(128deg,
      rgba(255, 255, 255, 0.42) 0%, transparent 42%,
      transparent 62%, rgba(0, 0, 0, 0.22) 100%);
}

.plate-list li:hover .swatch,
.coating:hover .swatch {
  transform: translateY(-3px) scale(1.07);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    inset 0 -7px 12px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 14px 26px rgba(0, 0, 0, 0.6),
    0 0 0 4px rgba(200, 148, 74, 0.13);
}

.swatch--zinc   { background: linear-gradient(135deg, #6f7d8c 0%, #e2e9ef 42%, #7f8b99 72%, #b9c4cd 100%); }
.swatch--tin    { background: linear-gradient(135deg, #8d949b 0%, #f6f8fa 42%, #a9b0b7 72%, #dfe3e7 100%); }
.swatch--copper { background: linear-gradient(135deg, #71391a 0%, #e79a60 42%, #9d5530 72%, #c87a48 100%); }
.swatch--nickel { background: linear-gradient(135deg, #7d7a70 0%, #eae5d8 42%, #948e80 72%, #c7c1b3 100%); }

.plate-foot {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.plate-foot a { color: var(--brass-2); transition: color 0.2s ease; }
.plate-foot a:hover { color: var(--cream); }

/* Pasek z hasłem z tablicy firmowej */

.slogan {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(200, 148, 74, 0.06), transparent 40%, rgba(200, 148, 74, 0.06));
}

.slogan .shell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-align: center;
}

.slogan span {
  color: var(--brass);
  background-image: linear-gradient(100deg,
      #c8944a 0%, #c8944a 42%, #fff4da 50%, #c8944a 58%, #c8944a 100%);
  background-size: 300% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slowSheen 7s ease-in-out infinite;
}

.slogan span:nth-child(3) { animation-delay: 0.35s; }
.slogan span:nth-child(5) { animation-delay: 0.7s; }

.slogan i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass-3);
  display: block;
}

/* ------------------------------------------------------------- 7. Powłoki */

.coatings {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.coating--zinc   { --glow: rgba(160, 182, 202, 0.22); --edge: rgba(160, 182, 202, 0.55); }
.coating--tin    { --glow: rgba(206, 214, 222, 0.20); --edge: rgba(206, 214, 222, 0.55); }
.coating--copper { --glow: rgba(226, 150, 96, 0.28);  --edge: rgba(226, 150, 96, 0.62); }
.coating--nickel { --glow: rgba(219, 211, 194, 0.24); --edge: rgba(219, 211, 194, 0.55); }

.coating {
  position: relative;
  background: linear-gradient(165deg, #141418 0%, #0e0e10 100%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.coating::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(72% 62% at 86% 4%, var(--glow, rgba(200, 148, 74, 0.18)), transparent 64%);
  transition: opacity 0.45s ease;
}

.coating:hover {
  transform: translateY(-8px);
  border-color: var(--edge, rgba(200, 148, 74, 0.5));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--glow, rgba(200, 148, 74, 0.12));
}

.coating:hover::before { opacity: 1; }

.coating-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  position: relative;
}

.coating .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  transition: color 0.3s ease;
}

.coating:hover .num { color: var(--brass); }

.coating h3 { font-size: 1.6rem; margin-bottom: 12px; }

.coating > p {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 24px;
  position: relative;
}

.coating .swatch { width: 54px; height: 54px; border-radius: 15px; }

.spec {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.spec li {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.coating:hover .spec li { border-color: rgba(200, 148, 74, 0.2); }

.spec .k {
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  min-width: 116px;
  flex-shrink: 0;
  padding-top: 3px;
}

.spec .v { color: var(--text); }

/* Błysk po wierszach parametrów, kaskadowo, tylko przy najechaniu na kartę. */
.spec .k,
.spec .v {
  background-image: linear-gradient(100deg,
      currentColor 0%, currentColor 38%,
      #8b6a33 44%, #e3bd80 49%, #fff4da 52%, #c8944a 57%,
      currentColor 63%, currentColor 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
}

.coating.is-sweeping .spec .k,
.coating.is-sweeping .spec .v {
  -webkit-text-fill-color: transparent;
  animation: sweep 1.15s var(--ease) forwards;
}

.coating.is-sweeping .spec li:nth-child(2) .k,
.coating.is-sweeping .spec li:nth-child(2) .v { animation-delay: 0.1s; }

.coating.is-sweeping .spec li:nth-child(3) .k,
.coating.is-sweeping .spec li:nth-child(3) .v { animation-delay: 0.2s; }

/* -------------------------------------------------------- 8. Jak pracujemy */

/* Każdy krok ma własną kreskę u góry, bez ciasnych pionowych linii między kolumnami. */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px;
}

.step {
  position: relative;
  padding: 30px 8px 8px 0;
  transition: transform 0.4s var(--ease);
}

.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  z-index: 1;
  background: linear-gradient(90deg, var(--brass-2), var(--brass-3));
  transition: width 0.55s var(--ease);
}

.step:hover { transform: translateY(-6px); }
.step:hover::before { width: 100%; }

.step .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--brass);
  display: block;
  margin-bottom: 22px;
  transition: letter-spacing 0.4s var(--ease);
}

.step:hover .num { letter-spacing: 0.26em; }

.step h3 { font-size: 1.16rem; margin-bottom: 12px; }

.step p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* ------------------------------------------------------------- 9. Galeria */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gal-card { display: flex; flex-direction: column; }

.gal-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background:
    repeating-linear-gradient(112deg,
      rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px,
      transparent 1px, transparent 6px),
    linear-gradient(150deg, #1c1c21 0%, #0f0f12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s ease;
}

.gal-card:hover .gal-media {
  transform: translateY(-7px);
  border-color: rgba(200, 148, 74, 0.42);
  box-shadow: 0 34px 62px rgba(0, 0, 0, 0.6), 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Przechył 3D za kursorem. Klasę dokłada skrypt tylko na myszy,
   na dotyku i przy ograniczonych animacjach efekt się nie włącza. */
[data-tilt] { will-change: transform; }

[data-tilt].is-tilting {
  transition: transform 0.13s ease-out,
              border-color 0.35s ease,
              box-shadow 0.45s ease;
}

/* Ledwo widoczne ciepłe światło idące za kursorem po kadrze.
   Pozycję podaje skrypt w zmiennych --mx i --my. */
[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  /* Promień w pikselach, a nie w procentach. Procenty liczą się osobno
     od szerokości i wysokości, więc na pionowym kadrze robiła się elipsa. */
  background: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%),
      rgba(255, 244, 218, 0.12), transparent 70%);
}

[data-tilt].is-tilting::after { opacity: 1; }

.gal-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gal-card:hover .gal-media img { transform: scale(1.05); }

.gal-media .placeholder {
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
  padding: 0 20px;
}

.gal-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--brass);
  display: block;
  margin: 22px 0 10px;
}

.gal-card h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.gal-card:hover h3 { color: var(--brass-2); }

.gal-card p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* ------------------------------------------------------------ 10. O firmie */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
  margin: 0;
  background:
    repeating-linear-gradient(118deg,
      rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px,
      transparent 1px, transparent 6px),
    linear-gradient(155deg, #1c1c21 0%, #0f0f12 100%);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s var(--ease);
}

.portrait:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 148, 74, 0.32);
  box-shadow: 0 42px 84px rgba(0, 0, 0, 0.62), 0 8px 20px rgba(0, 0, 0, 0.42);
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(11, 11, 12, 0.8);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: right;
  backdrop-filter: blur(8px);
}

.portrait-badge b {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brass-2);
  line-height: 1;
}

.portrait-badge span {
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: block;
  margin-top: 6px;
}

.portrait figcaption {
  position: relative;
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.about h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }

.about p { color: var(--muted); font-size: 1.02rem; }
.about p strong { color: var(--text); font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 38px 0 0;
  border-top: 1px solid var(--line);
}

.stats > div {
  position: relative;
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.35s var(--ease);
}

/* Błysk przejeżdża po kafelku, a nie po literach. Kolory tekstu zostają
   nietknięte: biały zostaje biały, mosiężna kursywa mosiężna. */
.stats > div::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg,
      transparent 0%, transparent 38%,
      rgba(255, 244, 218, 0.10) 50%,
      transparent 62%, transparent 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
}

.stats > div:hover::before {
  opacity: 1;
  animation: cellSweep 1s var(--ease);
}

/* Zamiast wypełnienia: mosiężna kreska wjeżdżająca po dolnej linii siatki. */
.stats > div::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brass-2), var(--brass-3));
  transition: width 0.5s var(--ease);
}

.stats > div:hover { transform: translateY(-3px); }
.stats > div:hover::after { width: 100%; }

.stats > div:hover dt { color: var(--brass); }

.stats dt { transition: color 0.3s ease; }

.stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats > div:nth-child(even) { padding-left: 24px; }

.stats dt {
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.stats dd {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stats dd em { color: var(--brass-2); font-size: 1.35rem; }

.registry {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.registry b { color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------- 11. FAQ */

.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  transition: color 0.25s ease, padding-left 0.35s var(--ease);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary:hover {
  color: var(--brass-2);
  padding-left: 10px;
}

.faq details.is-open summary { color: var(--brass-2); }

.faq .marker {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: transform 0.45s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.faq .marker::before,
.faq .marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--brass);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.faq .marker::before { width: 12px; height: 1.5px; }
.faq .marker::after  { width: 1.5px; height: 12px; }

.faq summary:hover .marker {
  border-color: var(--brass);
  background: rgba(200, 148, 74, 0.1);
}

.faq details.is-open .marker {
  transform: rotate(135deg);
  border-color: var(--brass);
  background: rgba(200, 148, 74, 0.12);
}

.faq details.is-open .marker::after { opacity: 0; }

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s var(--ease), opacity 0.35s ease;
}

.faq details.is-open .faq-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-body > div { overflow: hidden; }

.faq .answer {
  color: var(--muted);
  max-width: 720px;
  padding-bottom: 28px;
  margin: 0;
  font-size: 0.98rem;
}

/* ------------------------------------------------------------ 12. Kontakt */

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.form-card {
  background: var(--cream);
  color: var(--ink-text);
  border-radius: var(--r);
  padding: 34px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
}

.form-card h3 {
  font-size: 1.85rem;
  margin-bottom: 6px;
  color: var(--ink-text);
}

.form-card h3 em { color: var(--brass-3); }

.form-card > p {
  color: var(--ink-muted);
  font-size: 0.94rem;
  margin-bottom: 28px;
}

.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
}

.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
  transition: color 0.25s ease;
}

.field:focus-within label { color: var(--brass-3); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 9px 2px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark-2);
  border-radius: 0;
  color: var(--ink-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.25s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235c584f' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
  cursor: pointer;
}

.field textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder { color: #a9a498; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--brass-3);
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.form-consent {
  font-size: 0.78rem;
  color: var(--ink-muted);
  max-width: 300px;
  margin: 0;
  line-height: 1.5;
}

.form-consent a { text-decoration: underline; text-underline-offset: 2px; }

.form-status {
  display: none;
  margin: 20px 0 0;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
}

.form-status.is-success {
  display: block;
  background: rgba(60, 120, 70, 0.14);
  border: 1px solid rgba(60, 120, 70, 0.4);
  color: #2f6b39;
}

.form-status.is-error {
  display: block;
  background: rgba(150, 60, 50, 0.12);
  border: 1px solid rgba(150, 60, 50, 0.38);
  color: #8e3b30;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-list { list-style: none; margin: 0 0 30px; padding: 0; }

.contact-list li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.35s var(--ease);
}

.contact-list li:hover { transform: translateX(5px); }
.contact-list li:first-child { padding-top: 0; }

.contact-list .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brass);
  margin-top: 4px;
  transition: transform 0.35s var(--ease);
}

.contact-list li:hover .icon { transform: scale(1.15); }

.contact-list .k {
  display: block;
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.contact-list .v {
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.5;
}

.contact-list .v a { transition: color 0.2s ease; }
.contact-list .v a:hover { color: var(--brass-2); }

.map-frame {
  position: relative;
  height: 320px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(150deg, #1a1a1f, #101013);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.24) contrast(1.04);
}

.map-blocked {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 30px;
  background:
    repeating-linear-gradient(120deg,
      rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px,
      transparent 1px, transparent 7px),
    linear-gradient(155deg, #1b1b20, #0e0e11);
}

.map-blocked p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 340px;
}

/* ------------------------------------------------------------- 13. Stopka */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 76px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease);
}

.footer-brand:hover svg { transform: rotate(-8deg) scale(1.06); }

.footer-slogan {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-3);
  margin-bottom: 20px;
}

.footer-hours {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 2;
}

.footer-hours b {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-legal a { transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--brass-2); }

.footer-word {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  background: var(--metal);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  transition: background-position 0.8s var(--ease);
}

.footer-brand:hover .footer-word { background-position: 100% 0; }

.footer-grid p {
  color: var(--muted-2);
  font-size: 0.9rem;
  line-height: 1.75;
}

.footer-grid h4 {
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 11px; }

.footer-grid li a {
  display: inline-block;
  font-size: 0.93rem;
  color: var(--muted);
  transition: color 0.22s ease, transform 0.28s var(--ease);
}

.footer-grid li a:hover {
  color: var(--brass-2);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-bottom button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--muted-2);
  cursor: pointer;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-bottom button:hover { color: var(--brass-2); }

/* ------------------------------------------------------------ 14. Cookies */

.cookie-bar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: min(370px, calc(100vw - 32px));
  background: rgba(17, 17, 20, 0.97);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  animation: cookieIn 0.5s var(--ease) both;
}

.cookie-bar h4 { font-size: 1rem; margin-bottom: 8px; }

.cookie-bar p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.cookie-bar p a {
  color: var(--brass-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions { display: flex; gap: 10px; }

.cookie-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 11px 16px;
  font-size: 0.87rem;
}

/* -------------------------------------------------------- 15. Strony prawne */

.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 76px 28px 100px;
  position: relative;
  z-index: 2;
}

.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 14px;
}

.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal h2 {
  font-size: 1.32rem;
  margin: 48px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--brass-2); text-decoration: underline; text-underline-offset: 3px; }

.legal ul { padding-left: 20px; margin-bottom: 18px; }
.legal li { margin-bottom: 9px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 34px;
  transition: gap 0.3s var(--ease), color 0.2s ease;
}

.back-link:hover { color: var(--brass-2); gap: 14px; }
.back-link svg { width: 13px; height: 13px; }

/* -------------------------------------------------------- 16. Responsive */

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .portrait { aspect-ratio: 16 / 10; }
}

@media (max-width: 860px) {
  .section { padding: 78px 0; }
  .coatings { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; gap: 34px; }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 26px; }
}

/* Pełne menu nie mieści się poniżej 900 px razem z przyciskiem telefonu. */
@media (max-width: 1100px) {
  .main-nav {
    position: fixed;
    inset: 82px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: rgba(11, 11, 12, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    display: none;
  }

  .main-nav.is-open { display: flex; }

  .main-nav a:not(.btn) {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }

  .main-nav a:not(.btn)::after { display: none; }

  .nav-toggle { display: block; }
}

@media (max-width: 720px) {
  .shell { padding: 0 20px; }

  .header-cta .btn { display: none; }

  .hero { padding: 64px 0 60px; }
  .hero-meta { gap: 18px 26px; }
  .plate { padding: 24px 20px; }
  .form-card { padding: 26px 22px; }
  .field-grid { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div:nth-child(odd) { border-right: none; }
  .stats > div:nth-child(even) { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cookie-bar { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn { justify-content: center; }
  .form-consent { max-width: none; }
  .faq summary { font-size: 1.02rem; gap: 16px; }

  /* Na wąskim ekranie obie etykiety łamały się na dwie linie obok siebie. */
  .form-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  /* Większe cele dotykowe. Telefon to główny sposób kontaktu,
     a sam wiersz tekstu ma tylko 18 px, za mało na palec. */
  .contact-list .v a {
    display: inline-block;
    padding: 10px 0;
  }

  .footer-grid li { margin-bottom: 3px; }
  .footer-grid li a { padding: 7px 0; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .step { padding: 26px 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.reveal-ready [data-reveal] { opacity: 1; transform: none; }
}





/* Mobile: symetryczny układ i wygodne pola dotykowe. */
@media (max-width: 720px) {
  .shell { padding-inline: 20px; }
  .header-inner { gap: 12px; height: 76px; }
  .brand { gap: 9px; min-width: 0; }
  .brand-word { font-size: clamp(.88rem, 4.5vw, 1.16rem); }
  .brand-mark { width: 30px; height: 30px; }
  .nav-toggle { width: 44px; height: 44px; flex-shrink: 0; }
  .main-nav { top: 76px; max-height: calc(100dvh - 76px); overflow-y: auto; text-align: center; }
  .hero { padding: 48px 0 52px; }
  .hero-grid { gap: 32px; }
  .hero-copy { min-width: 0; text-align: center; }
  .hero .eyebrow, .section-head .eyebrow, .about-grid .eyebrow { justify-content: center; }
  .hero .eyebrow { font-size: .61rem; letter-spacing: .13em; gap: 8px; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.6rem); line-height: 1.15; text-wrap: balance; margin-bottom: 28px; }
  .hero .lede { margin: 0 auto 28px; max-width: 36ch; font-size: 1rem; line-height: 1.75; }
  .hero .btn-row { flex-direction: column; align-items: center; gap: 12px; }
  .hero .btn-row .btn { width: min(100%, 300px); min-height: 52px; justify-content: center; }
  .hero-meta { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 24px 0 0; margin-top: 28px; text-align: center; }
  .hero-meta li { color: var(--muted); }
  .section { padding: 60px 0; }
  .section-head { margin: 0 auto 32px; text-align: center; }
  .section-head--split { align-items: center; }
  .section-head--split > div { width: 100%; }
  .section-head--split .btn { justify-content: center; }
  .hero-grid > *, .contact-grid > *, .about-grid > *, .field-grid > * { min-width: 0; }
  .form-card { padding: 24px 18px; }
  .field input, .field select, .field textarea { min-width: 0; max-width: 100%; font-size: 16px; }
  .contact-list .v { overflow-wrap: anywhere; }
  .footer-grid, .footer-bottom { text-align: center; }
  .footer-bottom, .footer-legal { justify-content: center; }
  .footer-word { font-size: clamp(1rem, 5.5vw, 1.5rem); }
  body::before, .hero::before { animation: none; will-change: auto; }
  body::after { display: none; }
}

/* Spokojny rytm przewijania, bez blokowania natywnego scrolla. */
.site-header::after {
  content: ""; position: absolute; inset: auto 0 -1px; height: 2px;
  background: linear-gradient(90deg, var(--brass-3), var(--brass-2));
  transform: scaleX(var(--scroll-progress, 0)); transform-origin: left;
  pointer-events: none;
}
html.reveal-ready [data-reveal] { transform: translateY(22px); }
html.reveal-ready [data-reveal].is-visible {
  transition: opacity .7s ease, transform .85s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .step.is-visible::before { width: 100%; transition-delay: .18s; }
  .coating.is-visible .swatch { animation: metalArrival 1s var(--ease) both; }
  .hero-copy .btn--brass::after { animation: btnShine 1.2s var(--ease) .8s 1; }
}
@keyframes metalArrival {
  from { transform: scale(.88) rotate(-9deg); }
  to { transform: scale(1) rotate(0); }
}
@media (max-width: 720px) {
  .hero .plate, .slogan { display: none; }
  .hero { padding: 56px 0 40px; }
  .hero-grid { gap: 0; }
  .hero h1 { font-size: clamp(2.5rem, 11.4vw, 4.1rem); letter-spacing: -.045em; margin-bottom: 30px; }
  .hero .eyebrow { margin-bottom: 26px; }
  .hero .lede { max-width: 33ch; color: #b4b0a8; line-height: 1.8; }
  .hero .btn-row { gap: 6px; }
  .hero .btn-row .btn--ghost { border-color: transparent; color: var(--muted); box-shadow: none; font-size: .85rem; }
  .hero-meta { display: flex; justify-content: center; margin-top: 24px; padding-top: 20px; }
  .hero-meta li:not(:first-child) { display: none; }
  .hero-meta li { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 12px; font-size: .57rem; }
  .hero-meta strong { font-size: .8rem; margin: 0; font-weight: 500; }
  .section { padding: 54px 0; }
  .section-head h2 { font-size: clamp(2rem, 8.5vw, 2.8rem); text-wrap: balance; }
  .section-head p { font-size: .95rem; }
  .coatings { gap: 0; }
  .coating { padding: 28px 4px; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; background: transparent; box-shadow: none; }
  .coating:last-child { border-bottom: 1px solid var(--line-2); }
  .coating-top { align-items: center; margin-bottom: 16px; }
  .coating p { font-size: .94rem; }
  .coating .swatch { width: 42px; height: 42px; border-radius: 12px; }
  .coating:hover { transform: none; box-shadow: none; }
  .steps { gap: 30px; }
  .step .num { margin-bottom: 14px; }
  .gal-media { box-shadow: none; }
  [data-tilt] { will-change: auto; }
  .btn:active { transform: scale(.97); }
  .cookie-bar { padding: 18px; box-shadow: 0 8px 32px #0008; }
  html.reveal-ready [data-reveal] { transform: translateY(16px); }
  html.reveal-ready [data-reveal].is-visible { transform: none; transition-duration: .6s, .75s; }
}
@media (prefers-reduced-motion: reduce) {
  html.reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .site-header::after { display: none; }
}

/* Metody pracy i szersza kompozycja desktopowa. */
.hero-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .75rem; letter-spacing: .04em; color: var(--brass-2); margin: -12px 0 28px; }
.hero-methods span { color: var(--brass-3); }
.methods { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-bottom: 60px; }
.method { position: relative; padding: 34px; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(140deg, #1c1914 0%, #101012 68%); overflow: hidden; }
.method-index, .method-note { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-2); }
.method h3 { margin: 24px 0 18px; font-size: clamp(1.8rem,3vw,2.7rem); }
.method h3 em { color: var(--brass-2); }
.method p { color: var(--muted); max-width: 47ch; }
.method-note { display: block; padding-top: 18px; border-top: 1px solid var(--line); font-size: .58rem; line-height: 1.8; }
@media (min-width: 1101px) {
  :root { --shell: 1320px; }
  .main-nav { gap: 23px; }
  .header-inner { gap: 20px; }
  .hero { padding: 110px 0 90px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: clamp(40px,5vw,84px); }
  .hero h1 { font-size: clamp(4.6rem,6vw,6rem); letter-spacing: -.05em; line-height: 1.02; max-width: 10ch; }
  .hero .lede { max-width: 46ch; }
  .hero-meta { padding-left: 0; gap: 16px 26px; }
  .plate { padding: 38px 34px; border-radius: 26px; border-color: #b0873f66; background: radial-gradient(ellipse at top right,#b0873f20,transparent 65%),linear-gradient(150deg,#1e1e23,#0d0d0f 85%); box-shadow: 0 45px 90px #0008,0 1px 0 #e3bd8033 inset; }
  .plate-list li { padding-block: 20px; }
  .plate .swatch { width: 54px; height: 54px; }
  .coatings { gap: 28px; }
  .coating { padding: 38px; }
  .coating h3 { font-size: 2rem; }
  .section-head { margin-bottom: 48px; }
  .gallery { gap: 32px; }
  .gallery .gal-card:nth-child(2) { padding-top: 40px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .method { transition: border-color .35s ease, box-shadow .35s ease; }
  .method:hover { border-color: #e3bd8080; box-shadow: 0 18px 50px #0005; }
}
@media (max-width: 720px) {
  .hero-methods { justify-content: center; font-size: .67rem; gap: 6px 9px; margin: -10px auto 24px; max-width: 32ch; }
  .methods { grid-template-columns: minmax(0,1fr); gap: 18px; margin-bottom: 36px; }
  .method { padding: 24px; border-radius: 14px; }
  .method h3 { font-size: 2rem; margin-top: 18px; }
  .method p { font-size: .92rem; }
  .spec li { min-width: 0; gap: 12px; }
  .spec .v { min-width: 0; overflow-wrap: anywhere; }
  .registry { flex-wrap: wrap; }
  .form-head span, .form-status { overflow-wrap: anywhere; }
  .form-foot .btn { min-height: 48px; }
  .about h2 { text-align: center; text-wrap: balance; }
  .main-nav a { min-height: 48px; }
}

/* La poświata metalu pod treścią, aktywowana środkiem ekranu. */
@media (max-width: 720px) {
  body[data-metal="zinc"] { --amb-warm: rgba(115,165,205,.24); --amb-cool: rgba(115,165,205,.16); }
  body[data-metal="tin"] { --amb-warm: rgba(215,230,242,.19); --amb-cool: rgba(190,208,225,.13); }
  body[data-metal="copper"] { --amb-warm: rgba(230,122,49,.32); --amb-cool: rgba(195,91,37,.20); }
  body[data-metal="nickel"] { --amb-warm: rgba(214,204,174,.24); --amb-cool: rgba(178,181,163,.15); }
  body::before {
    z-index: 0; inset: 0; background: radial-gradient(ellipse at 100% 45%, var(--amb-warm), transparent 72%), radial-gradient(ellipse at 0% 75%, var(--amb-cool), transparent 70%);
  }
  .coating { transition: border-color .65s ease; }
  .coating.is-active-metal { border-top-color: var(--edge); }
  .coating::before { display: none; }
  .coating .swatch { transition: box-shadow .65s ease; }
  .coating.is-active-metal .swatch { box-shadow: 0 0 26px var(--glow), inset 0 1px 2px #ffffff80; }
}

/* Podkreślenia metod oraz ciągłe mieszanie kolorów w rytmie scrolla. */
.method h3 em { position: relative; display: inline-block; }
.method h3 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.18em;
  height: 2px; border-radius: 50%; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
@media (hover: hover) and (min-width: 721px) {
  .method.is-underlined h3 em::after { transform: scaleX(1); }
}
@media (max-width: 720px) {
  .about-grid > .portrait { display: none; }
  body { transition: none; }
  .method.is-underlined h3 em::after { transform: scaleX(1); }
}

@media (max-width: 720px) {
  .hero-methods { max-width: none; flex-wrap: nowrap; gap: 8px; font-size: clamp(.58rem, 2.55vw, .72rem); letter-spacing: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand.is-shining .brand-word { animation: logoShine .9s ease-in-out both; }
}
@keyframes logoShine {
  0% { background-position: 0% 0; }
  55% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

/* Łagodne wygaszenie lokalnej poświaty i odsunięte statystyki. */
@media (max-width: 720px) {
  .hero::before { display: none; }
  body { transition: --amb-warm .7s ease, --amb-cool .7s ease; }
}
.stats > div, .stats > div:nth-child(even) { padding: 24px; }
.stats > div::before {
  inset: 6px; border-radius: 10px;
  background: radial-gradient(ellipse at center, rgba(227,189,128,.10), transparent 75%);
}
.stats > div::after { left: 24px; bottom: 0; width: calc(100% - 48px); transform: scaleX(0); transform-origin: center; transition: transform .5s var(--ease); }
.stats > div:hover { transform: none; }
.stats > div:hover::before { animation: none; opacity: 1; }
.stats > div:hover::after { width: calc(100% - 48px); transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { body { transition: none; } }

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats > div, .stats > div:nth-child(even) { min-width: 0; padding: 22px 12px; text-align: center; }
  .stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .stats dt { font-size: .55rem; letter-spacing: .08em; }
  .stats dd { margin: 0; font-size: clamp(1.1rem,4.9vw,1.5rem); line-height: 1.4; }
  .stats dd em { display: block; font-size: .85rem; }
  .stats > div::after { left: 12px; width: calc(100% - 24px); }
  .stats > div:hover::after { width: calc(100% - 24px); }
  .registry { justify-content: center; gap: 8px 16px; font-size: .6rem; letter-spacing: .08em; }
}

/* Desktop: otwarty panel i animacje kończące pełny przebieg. */
@media (min-width: 721px) {
  .plate { border: 0; border-radius: 0; border-left: 1px solid var(--line-2); background: transparent; box-shadow: none; padding: 20px 0 20px 40px; }
  .plate::before { display: none; }
  .plate-list li { border-radius: 0; margin: 0; padding: 22px 0; gap: 22px; }
  .plate-list .name { font-size: 1.22rem; }
  .plate-list .desc { font-size: .6rem; letter-spacing: .12em; }
  .plate .swatch { width: 38px; height: 38px; border-radius: 50%; }
  .plate-head { padding-bottom: 20px; }
  .plate-foot { font-size: .82rem; color: var(--muted); }
}
@media (hover: hover) and (min-width: 721px) and (prefers-reduced-motion: no-preference) {
  html.reveal-ready .coating[data-reveal].is-visible {
    transition: opacity .7s ease, transform .45s var(--ease), border-color .65s ease, box-shadow .65s ease;
  }
  html.reveal-ready .coating[data-reveal].is-visible:hover { transform: translateY(-10px); }
  .coating::before { transition: opacity .65s ease; }
  .plate-list li { transition: transform .4s var(--ease), background .5s ease; }
  .plate-list li:hover { transform: translateX(7px); background: transparent; }
  .stats > div::before {
    inset: 8px; border-radius: 12px; opacity: 0;
    background: linear-gradient(100deg,transparent 0%,transparent 38%,rgba(255,244,218,.16) 50%,transparent 62%,transparent 100%);
    background-size: 300% 100%; background-position: 100% 0;
    mask-image: linear-gradient(to right,transparent,#000 14%,#000 86%,transparent),linear-gradient(to bottom,transparent,#000 22%,#000 78%,transparent);
    mask-composite: intersect;
  }
  .stats > div:hover::before { animation: none; opacity: 0; }
  .stats > div.is-sweeping::before { animation: softStatSweep 1.1s var(--ease) both; }
}
@keyframes softStatSweep {
  0% { background-position: 100% 0; opacity: 0; }
  18% { opacity: 1; }
  80% { opacity: 1; }
  100% { background-position: 0% 0; opacity: 0; }
}

/* Biały refleks jak na złotym przycisku, z miękką krawędzią. */
@media (hover: hover) and (min-width: 721px) and (prefers-reduced-motion: no-preference) {
  .stats > div::before {
    background: linear-gradient(100deg, transparent 0%, transparent 40%, rgba(255,255,255,.08) 44%, rgba(255,255,255,.58) 50%, rgba(255,255,255,.08) 56%, transparent 60%, transparent 100%);
    background-size: 300% 100%; background-position: 100% 0;
  }
}
