/* styles.css - komponenty makiety kamperow */

/* === Reset minimalny === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font-body);
  color: var(--color-graphite);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-primary-active); }
:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; border-radius: 2px; }

/* === Typografia === */
h1, h2, h3, h4 { font-family: var(--font-headline); margin: 0 0 0.5em; color: var(--color-graphite); }
h1 { font: 800 clamp(34px, 5.4vw, 60px)/1.05 var(--font-headline); letter-spacing: -0.025em; }
h2 { font: 700 clamp(28px, 4vw, 44px)/1.15 var(--font-headline); letter-spacing: -0.015em; }
h3 { font: 700 clamp(22px, 2.8vw, 30px)/1.2 var(--font-headline); letter-spacing: -0.01em; }
h4 { font: 600 clamp(18px, 2vw, 22px)/1.3 var(--font-headline); }
p { margin: 0 0 1em; }
.mono { font-family: var(--font-mono); }

/* === Container === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

/* === Sekcje === */
section { padding: var(--section-padding-y) 0; position: relative; }
.section-dark { background: var(--color-anthracite); color: var(--color-white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-white); }
.section-paper-warm { background: var(--color-paper-warm); }

.section-head { max-width: 720px; margin: 0 auto var(--space-12); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.eyebrow {
  text-transform: uppercase;
  font: 600 13px/1 var(--font-headline);
  letter-spacing: 2px;
  color: var(--brand-primary);
  margin: 0 0 14px;
  display: inline-block;
}
.section-heading {
  font: 700 clamp(28px, 3.6vw, 44px)/1.15 var(--font-headline);
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--color-graphite);
}
.section-dark .section-heading { color: var(--color-white); }
.section-lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--color-steel);
  max-width: 720px;
  margin: 0 0 1.5em;
}
.section-dark .section-lead { color: rgba(255, 255, 255, 0.82); }

/* === Buttony === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font: 700 15px/1 var(--font-headline);
  letter-spacing: 0.015em;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out-quint);
  white-space: nowrap;
}
.btn-primary { background: var(--brand-primary); color: var(--color-graphite); }
.btn-primary:hover { background: var(--brand-primary-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245, 166, 35, 0.3); color: var(--color-graphite); }
.btn-primary:active { transform: translateY(0); background: var(--brand-primary-active); }
.btn-outline { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-outline:hover { background: var(--brand-primary); color: var(--color-graphite); }
.btn-outline-light { background: transparent; color: var(--color-white); border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { background: var(--color-white); color: var(--color-graphite); border-color: var(--color-white); }
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

/* === Top bar === */
.topbar {
  background: var(--color-anthracite);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: rgba(255, 255, 255, 0.78); }
.topbar a:hover { color: var(--color-white); }
.topbar .topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item .icon { width: 14px; height: 14px; opacity: 0.7; }
@media (max-width: 1023px) { .topbar { display: none; } }

/* === Header === */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  transition: backdrop-filter var(--duration-base), background var(--duration-base), box-shadow var(--duration-base);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h);
  flex-wrap: nowrap;
  min-width: 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--color-graphite); text-decoration: none;
  flex-shrink: 0;
}
.brand picture, .brand img { display: block; }
.brand img { height: 38px; width: auto; max-width: 240px; }
.header .brand img { height: 38px; }
.footer .brand { margin-bottom: 18px; }
.footer .brand img { height: 34px; max-width: 200px; }
@media (max-width: 1199px) {
  .header .brand img { height: 34px; }
}
@media (max-width: 575px) {
  .header .brand img { height: 30px; }
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
}
.nav a {
  color: var(--color-graphite);
  font: 500 14px/1 var(--font-body);
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.nav a:hover { background: var(--color-paper-warm); color: var(--color-graphite); }
.nav .nav-cta { margin-left: 10px; padding: 10px 18px; }
.mobile-drawer,
.mobile-drawer-head,
.mobile-drawer-foot,
.nav-backdrop { display: none; }

/* W zakresie 1024-1280 zmniejsz padding linkow zeby zmiescic 8 pozycji + CTA */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header .container { gap: 14px; }
  .nav a { padding: 10px 9px; font-size: 13.5px; }
  .nav .nav-cta { padding: 10px 14px; margin-left: 4px; }
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  color: var(--color-graphite);
  flex-shrink: 0;
}
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 1023px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; position: relative; z-index: 65; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: block;
    background: rgba(10, 13, 20, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-out-quint);
  }
  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    display: flex;
    width: min(420px, 92vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    background:
      radial-gradient(circle at 85% 12%, rgba(245, 166, 35, 0.16), transparent 30%),
      linear-gradient(160deg, #151922 0%, #1a1f2a 52%, #10131a 100%);
    box-shadow: -28px 0 70px rgba(0, 0, 0, 0.34);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--duration-base) var(--ease-out-quint), visibility var(--duration-base);
  }
  .mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .mobile-drawer-head,
  .mobile-drawer-foot { display: block; }
  .mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mobile-drawer-logo img {
    width: 164px;
    height: auto;
  }
  .mobile-drawer-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: var(--radius-md);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
  }
  .mobile-drawer-close .icon { width: 20px; height: 20px; }
  .mobile-drawer-links {
    display: block;
    padding: 4px 0 0;
  }
  .mobile-drawer-links > a:not(.mobile-drawer-quote) {
    display: flex;
    align-items: center;
    min-height: 58px;
    width: auto;
    margin: 0 22px;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.9);
    font: 750 18px/1.25 var(--font-headline);
    white-space: normal;
  }
  .mobile-drawer-links > a:not(.mobile-drawer-quote):hover,
  .mobile-drawer-links > a:not(.mobile-drawer-quote):focus-visible {
    color: var(--color-white);
    background: transparent;
  }
  .mobile-drawer-links > a:not(.mobile-drawer-quote)::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-top: 2px solid var(--brand-primary);
    border-right: 2px solid var(--brand-primary);
    transform: rotate(45deg);
    opacity: 0.78;
  }
  .mobile-drawer-quote {
    display: flex;
    justify-content: center;
    margin: 22px;
    padding: 15px 20px;
    color: var(--color-graphite);
    border-radius: var(--radius-md);
    background: var(--brand-primary);
    font-weight: 800;
    font-size: 15px;
  }
  .mobile-drawer-quote:hover { color: var(--color-graphite); background: var(--brand-primary-hover); }
  .mobile-drawer-foot {
    margin-top: auto;
    padding: 0 22px 24px;
  }
  .mobile-drawer-primary,
  .mobile-drawer-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 750;
  }
  .mobile-drawer-primary {
    min-height: 54px;
    margin-bottom: 12px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    color: var(--color-graphite);
    background: var(--brand-primary);
  }
  .mobile-drawer-primary:hover { color: var(--color-graphite); background: var(--brand-primary-hover); }
  .mobile-drawer-contact:hover { color: var(--color-white); }
  .mobile-drawer-primary .icon,
  .mobile-drawer-contact .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }
  .mobile-drawer-contact .icon {
    width: 20px;
    height: 20px;
    color: var(--brand-primary);
  }
  body.nav-open {
    overflow: hidden;
  }
}

/* === Hero === */
.hero {
  position: relative;
  min-height: clamp(560px, 80vh, 820px);
  display: grid;
  align-items: end;
  color: var(--color-white);
  overflow: hidden;
  isolation: isolate;
  background: var(--color-graphite);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(140deg, #1a2236 0%, #2c3a52 100%);
}
.hero-bg img, .hero-bg .placeholder, .hero-bg picture {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.92;
}
.hero-bg picture img { display: block; }
/* Slow Ken Burns - delikatny zoom + przesuniecie */
@keyframes hero-ken-burns {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1.5%); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-bg picture img { animation: hero-ken-burns 22s ease-in-out infinite alternate; transform-origin: 55% 55%; }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26, 31, 42, 0.1) 0%, rgba(26, 31, 42, 0.4) 50%, rgba(26, 31, 42, 0.92) 100%);
}
.hero .container { padding-top: var(--space-24); padding-bottom: var(--space-20); }
.hero-eyebrow { color: var(--brand-primary); font: 600 13px/1 var(--font-headline); letter-spacing: 2px; text-transform: uppercase; margin: 0 0 18px; display: inline-block; }
.hero h1 { color: var(--color-white); margin: 0 0 18px; max-width: 920px; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, 0.92); max-width: 700px; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.hero-meta dt { font: 600 12px/1 var(--font-headline); letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-bottom: 6px; }
.hero-meta dd { margin: 0; font: 700 18px/1.2 var(--font-headline); color: var(--color-white); }
@media (max-width: 767px) {
  .hero {
    width: 100vw;
    min-height: calc(100svh - var(--header-h));
    margin-left: calc(50% - 50vw);
    padding: 0;
    align-items: center;
    text-align: center;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(16, 19, 26, 0.36) 0%, rgba(16, 19, 26, 0.7) 48%, rgba(16, 19, 26, 0.88) 100%);
  }
  .hero .container {
    width: 100%;
    max-width: none;
    min-height: calc(100svh - var(--header-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px 20px 32px;
  }
  .hero-eyebrow {
    padding-left: 0;
    margin-bottom: 14px;
  }
  .hero-eyebrow::before { display: none; }
  .hero h1 {
    max-width: 12ch;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-lead {
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 26px;
  }
  .hero-cta {
    width: 100%;
    max-width: 340px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .hero-meta {
    display: none;
  }
}

/* === O produkcie === */
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-16); align-items: center; }
@media (max-width: 1023px) { .intro-grid { grid-template-columns: 1fr; gap: var(--space-10); } }
.intro-grid .intro-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
  background: var(--color-paper-warm);
}
.intro-grid .intro-media img, .intro-grid .intro-media .placeholder { width: 100%; height: 100%; object-fit: cover; }

/* === Karta produktu === */
.product-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-12);
  align-items: start;
  margin-bottom: var(--space-16);
}
.product-card:last-child { margin-bottom: 0; }
@media (max-width: 1023px) { .product-card { grid-template-columns: 1fr; gap: var(--space-8); } }
.product-card.flip { direction: rtl; }
.product-card.flip > * { direction: ltr; }
.product-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-paper-warm);
  box-shadow: var(--shadow-md);
}
.product-media img, .product-media .placeholder { width: 100%; height: 100%; object-fit: cover; }
.product-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(245, 166, 35, 0.94);
  color: var(--color-graphite);
  font: 700 12px/1 var(--font-headline);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.product-body h3 { margin-bottom: 14px; }
.product-body .lead { color: var(--color-steel); font-size: 17px; line-height: 1.7; }

/* === Tabela techniczna === */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-md); margin: var(--space-6) 0; }
.spec-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 14px;
  min-width: 720px;
}
.spec-table caption { padding: 14px 16px; text-align: left; font: 700 14px/1.2 var(--font-headline); letter-spacing: 0; color: var(--color-graphite); background: var(--color-paper-warm); }
.spec-table th {
  background: var(--color-anthracite); color: var(--color-white);
  text-align: left; padding: 12px 16px;
  font: 600 13px/1.2 var(--font-headline); letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
.spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--color-line); vertical-align: middle; }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr { transition: background var(--duration-fast); }
.spec-table tbody tr:hover { background: var(--color-paper-warm); }
.spec-table .chassis-name { font-family: var(--font-body); font-weight: 600; color: var(--color-graphite); }
.spec-table .num { text-align: right; color: var(--color-graphite); }

/* === Callout === */
.callout {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  margin: var(--space-8) 0;
  align-items: start;
}
.callout-warning {
  border-left: 4px solid var(--color-red);
  background: #FDF6F0;
}
.callout .icon { width: 24px; height: 24px; color: var(--color-red); margin-top: 2px; }
.callout strong { font-weight: 700; }
.callout p { margin: 0; line-height: 1.65; color: var(--color-graphite); }

/* === Galeria realizacji === */
.gallery-showcase {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(26, 31, 42, 0.94), rgba(18, 22, 30, 0.98)),
    url('../img/codex/tlo-perforacja.webp') center / cover;
  color: var(--color-white);
}
.gallery-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(245, 166, 35, 0.14), transparent 32%),
    linear-gradient(180deg, transparent 72%, rgba(10, 13, 20, 0.5));
}
.gallery-showcase > .container { position: relative; z-index: 1; }
.gallery-showcase .section-heading { color: var(--color-white); }
.gallery-showcase .section-lead { color: rgba(255, 255, 255, 0.78); }
.gallery-showcase-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: var(--space-12);
}
.gallery-showcase-head .section-head { margin-bottom: 0; }
.gallery-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}
.gallery-proof div {
  min-width: 0;
  padding: clamp(16px, 2.2vw, 24px);
  background: rgba(16, 20, 28, 0.74);
}
.gallery-proof dt {
  margin: 0 0 8px;
  color: var(--brand-primary);
  font: 800 clamp(22px, 3vw, 34px)/1 var(--font-headline);
}
.gallery-proof dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font: 600 11px/1.35 var(--font-mono);
  text-transform: uppercase;
}
.gallery-group {
  margin-bottom: var(--space-16);
  padding: clamp(18px, 2.8vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.22);
}
.gallery-group:last-child { margin-bottom: 0; }
.gallery-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--space-6);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.gallery-header h3 {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(21px, 2.4vw, 30px);
}
.gallery-header .meta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.28);
  font: 700 12px/1 var(--font-mono);
  text-transform: uppercase;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(8px, 1.2vw, 14px);
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: #111721;
  cursor: zoom-in;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  transition: transform var(--duration-base) var(--ease-out-quint), border-color var(--duration-base), box-shadow var(--duration-base);
}
.gallery-item.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
  transition: transform var(--duration-slow) var(--ease-out-quint), filter var(--duration-base);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(8, 11, 17, 0.82));
  opacity: 0;
  transition: opacity var(--duration-base);
}
.gallery-item figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  font: 600 12px/1.35 var(--font-body);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration-base), transform var(--duration-base);
}
.gallery-item figcaption span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  color: var(--color-graphite);
  background: var(--brand-primary);
  font: 800 12px/1 var(--font-mono);
}
.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(245, 166, 35, 0.5);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.08);
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after,
.gallery-item:hover figcaption,
.gallery-item:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 3px; }
@media (max-width: 1023px) {
  .gallery-showcase-head { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .gallery-proof { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item.is-featured { grid-column: span 2; }
  .gallery-item figcaption { display: none; }
}
@media (max-width: 575px) {
  .gallery-group { padding: 12px; }
  .gallery-header .meta { width: 100%; justify-content: center; }
}

/* === Lightbox === */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 10, 15, 0.96);
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(14px, 3vw, 36px);
}
.lightbox.is-open { display: flex; }
.lightbox-img-wrap {
  max-width: min(1500px, 94vw);
  width: 100%;
  max-height: 100%;
  position: relative;
}
.lightbox img {
  width: 100%; height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}
.lightbox-caption { color: rgba(255, 255, 255, 0.82); text-align: center; padding-top: 14px; font: 600 13px/1.5 var(--font-body); }
.lightbox-btn {
  position: absolute;
  background: rgba(18, 22, 30, 0.74); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff;
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  backdrop-filter: blur(10px);
  transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}
.lightbox-btn:hover { background: rgba(245, 166, 35, 0.2); border-color: rgba(245, 166, 35, 0.5); }
.lightbox-btn .icon { width: 22px; height: 22px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { top: 50%; left: 16px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 16px; transform: translateY(-50%); }

/* === Lista dedykowanych (chips) === */
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-6); }
.brand-chip {
  background: var(--color-paper-warm);
  border: 1px solid var(--color-line);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font: 500 14px/1 var(--font-body);
  color: var(--color-graphite);
}

/* === Kampervany filtr === */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-bottom: var(--space-6);
}
.filter-bar label { font: 600 13px/1 var(--font-headline); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-steel); }
.filter-bar input, .filter-bar select {
  font: 400 15px/1 var(--font-body);
  padding: 10px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  min-width: 220px;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--brand-primary); outline: 2px solid rgba(245, 166, 35, 0.2); outline-offset: 0; }
.filter-summary { color: var(--color-steel); font-size: 14px; margin-left: auto; font-family: var(--font-mono); }
.spec-table tr.is-hidden { display: none; }

/* Mobile karta zamiast tabeli */
@media (max-width: 767px) {
  .table-wrap.compat-stack { border: 0; }
  .table-wrap.compat-stack .spec-table { min-width: 0; display: block; }
  .table-wrap.compat-stack .spec-table thead { display: none; }
  .table-wrap.compat-stack .spec-table tbody { display: block; }
  .table-wrap.compat-stack .spec-table tr { display: block; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 10px; }
  .table-wrap.compat-stack .spec-table tr:hover { background: #fff; }
  .table-wrap.compat-stack .spec-table td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; font-family: var(--font-mono); }
  .table-wrap.compat-stack .spec-table td::before { content: attr(data-label); font-family: var(--font-headline); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-steel); }
  .table-wrap.compat-stack .spec-table td.chassis-name { padding-top: 0; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--color-line); }
  .table-wrap.compat-stack .spec-table td.chassis-name::before { display: none; }
  .table-wrap.compat-stack .spec-table td.chassis-name { font-family: var(--font-headline); font-weight: 700; font-size: 16px; }
}

/* === Typy haków - 2 kolumny === */
.hook-types { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
@media (max-width: 767px) { .hook-types { grid-template-columns: 1fr; } }
.hook-type {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.hook-type h3 { margin: 0 0 12px; }
.hook-type .know { margin-top: auto; background: var(--color-paper-warm); border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 20px; }
.hook-type .know p { font: 700 13px/1 var(--font-headline); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 12px; color: var(--color-steel); }
.hook-type .know ul { padding-left: 18px; margin: 0; }
.hook-type .know li { margin-bottom: 8px; color: var(--color-graphite); }
.hook-type .know li:last-child { margin-bottom: 0; }

/* === Filmy 3D === */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-graphite);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-base) var(--ease-out-quint), box-shadow var(--duration-base);
  isolation: isolate;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.video-card:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 3px; }
.video-card-media { position: absolute; inset: 0; }
.video-card-media img,
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card-media img { transition: transform 600ms var(--ease-out-quint), filter 400ms; }
.video-card:hover .video-card-media img { transform: scale(1.05); filter: brightness(1.05); }
.video-card-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,13,20,0) 30%, rgba(10,13,20,0.45) 70%, rgba(10,13,20,0.85) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  transition: opacity var(--duration-base);
}
.video-card:hover .video-card-overlay { opacity: 0.85; }
.video-card-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-graphite);
  display: grid; place-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(245, 166, 35, 0.5);
  transition: transform var(--duration-base) var(--ease-out-quint), background var(--duration-base), box-shadow var(--duration-base);
  pointer-events: none;
}
.video-card:hover .video-card-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--brand-primary);
  box-shadow: 0 12px 36px rgba(245, 166, 35, 0.5), 0 0 0 12px rgba(245, 166, 35, 0.12);
}
.video-card-play svg { width: 28px; height: 28px; margin-left: 3px; }
.video-card-label {
  position: absolute; left: 22px; right: 22px; bottom: 18px;
  color: #fff;
  display: flex; flex-direction: column; gap: 2px;
  pointer-events: none;
}
.video-card-label .title { font: 700 18px/1.2 var(--font-headline); letter-spacing: -0.01em; }
.video-card-label .sub { font: 500 13px/1.3 var(--font-body); color: rgba(255,255,255,0.78); }
.video-card-badge {
  position: absolute; right: 14px; top: 14px;
  background: rgba(245, 166, 35, 0.96);
  color: var(--color-graphite);
  font: 800 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.video-card.is-playing { cursor: default; }
.video-card.is-playing .video-card-play,
.video-card.is-playing .video-card-overlay,
.video-card.is-playing .video-card-label,
.video-card.is-playing .video-card-badge { opacity: 0; pointer-events: none; transition: opacity 250ms; }
.video-card.is-playing:hover { transform: none; }
.video-card.is-playing video { background: #000; }

/* Pulse on idle */
@keyframes play-pulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(245, 166, 35, 0.55); }
  50%      { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 18px rgba(245, 166, 35, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .video-card-play { animation: play-pulse 2.6s ease-out infinite; }
  .video-card.is-playing .video-card-play { animation: none; }
}

/* === Jakość / certyfikaty === */
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: start; }
@media (max-width: 1023px) { .quality-grid { grid-template-columns: 1fr; } }
.tech-list { list-style: none; padding: 0; margin: 0 0 var(--space-8); }
.tech-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line-dark);
  align-items: start;
}
.section-dark .tech-list li { border-bottom-color: rgba(255,255,255,0.1); }
.tech-list li:last-child { border-bottom: 0; }
.tech-list .num { font-family: var(--font-mono); font-weight: 700; color: var(--brand-primary); font-size: 18px; padding-top: 2px; }
.tech-list h4 { margin: 0 0 4px; font-size: 17px; }
.tech-list p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 15px; }

.cert-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cert-table th, .cert-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.cert-table tr:last-child th, .cert-table tr:last-child td { border-bottom: 0; }
.cert-table th { font: 700 13px/1.2 var(--font-headline); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-primary); background: rgba(0, 0, 0, 0.2); width: 35%; }
.cert-table td { color: rgba(255, 255, 255, 0.88); }

/* === Jak zamówić === */
.order-paths { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); }
@media (max-width: 1023px) { .order-paths { grid-template-columns: 1fr; } }
.order-path {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.order-path h3 { margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.order-path .ico {
  width: 44px; height: 44px;
  background: var(--brand-primary); color: var(--color-graphite);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
}
.order-steps { counter-reset: step; padding: 0; list-style: none; margin: 0; }
.order-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
}
.order-steps li:last-child { border-bottom: 0; }
.order-steps li::before {
  content: counter(step);
  font: 700 14px/32px var(--font-mono);
  background: var(--color-graphite);
  color: var(--brand-primary);
  border-radius: 50%;
  width: 32px; height: 32px;
  text-align: center;
}

.docs-box {
  background: var(--color-paper-warm);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-8);
  margin-top: var(--space-10);
}
.docs-box h4 { margin: 0 0 10px; }
.docs-box ul { list-style: none; padding: 0; margin: 0 0 12px; }
.docs-box li { padding: 6px 0; font-family: var(--font-mono); font-size: 14px; }
.docs-box li strong { color: var(--brand-primary-active); margin-right: 10px; }

/* === Formularz === */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-10); }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-info .item { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.contact-info .item .icon { width: 22px; height: 22px; color: var(--brand-primary); margin-top: 2px; }
.contact-info .item h4 { margin: 0 0 4px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-steel); font-weight: 600; }
.contact-info .item p, .contact-info .item a { margin: 0; font-family: var(--font-headline); font-weight: 600; font-size: 17px; color: var(--color-graphite); }

.form {
  background: linear-gradient(180deg, var(--color-white) 0%, #FBFAF7 100%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 2px 8px rgba(26,31,42,0.04), 0 16px 40px rgba(26,31,42,0.06);
}
.form > p:first-of-type {
  margin: 0 0 10px;
  font: 800 22px/1.2 var(--font-headline);
  letter-spacing: -0.015em;
  color: var(--color-graphite);
}
.form > .form-intro {
  margin: 0 0 28px;
  color: var(--color-steel);
  font-size: 14.5px; line-height: 1.6;
}

/* Fieldsety - grupowanie pol */
.form fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}
.form fieldset:last-of-type { margin-bottom: 20px; }
.form fieldset > legend {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  font: 700 11px/1 var(--font-headline);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-graphite);
}
.form fieldset > legend::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--brand-primary);
  display: inline-block;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 575px) {
  .form-row, .form-row.triple { grid-template-columns: 1fr; gap: 14px; }
}

.form .field { position: relative; }
.form .field label {
  display: flex; align-items: center; gap: 6px;
  font: 700 11px/1 var(--font-headline);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-steel);
  margin-bottom: 9px;
  transition: color var(--duration-fast);
}
.form .field--required > label::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--brand-primary);
  border-radius: 50%;
  display: inline-block;
  margin-left: 2px;
  box-shadow: 0 0 0 3px rgba(245,166,35,0.18);
}
.form .field:focus-within label { color: var(--color-graphite); }

/* Wrapper CF7 nie psuje grida */
.form .field .wpcf7-form-control-wrap { display: block; width: 100%; }

.form .field input, .form .field select, .form .field textarea,
.form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-file) {
  width: 100%;
  font: 400 15px/1.4 var(--font-body);
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-graphite);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .field input:focus, .form .field select:focus, .form .field textarea:focus { border-color: var(--brand-primary); outline: 2px solid rgba(245, 166, 35, 0.2); }
.form-disclaimer { font-size: 13px; color: var(--color-steel); margin-top: 16px; }
@media (max-width: 575px) { .form-row { grid-template-columns: 1fr; } }

/* === Stopka large === */
.hkp-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: var(--section-padding-y);
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 16% 18%, rgba(136, 149, 167, 0.16), transparent 28%),
    radial-gradient(circle at 84% 76%, rgba(245, 166, 35, 0.13), transparent 30%),
    linear-gradient(135deg, #151922 0%, #1a1f2a 42%, #10131a 100%);
}
.hkp-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 74%, transparent 100%);
}
.hkp-footer > .container {
  position: relative;
  z-index: 1;
}
.hkp-footer > .container::before {
  content: none;
}
.hkp-footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(420px, 1.55fr) minmax(300px, 0.95fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: start;
  padding: clamp(54px, 7vw, 86px) 0;
}
.hkp-footer-front-logo {
  display: block;
  width: min(250px, 76vw);
  height: auto;
}
.hkp-footer-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.hkp-footer-proof-grid div {
  min-height: 96px;
  padding: 16px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}
.hkp-footer-proof-grid strong {
  display: block;
  color: var(--color-white);
  font: 800 clamp(24px, 3vw, 34px)/1 var(--font-headline);
}
.hkp-footer-proof-grid span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.35;
}
.hkp-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.hkp-footer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 800;
}
.hkp-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 38px);
}
.hkp-footer-column h3 {
  margin: 0 0 18px;
  color: var(--color-white);
  font: 800 14px/1.2 var(--font-headline);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hkp-footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hkp-footer-column li + li { margin-top: 12px; }
.hkp-footer-column a {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 650;
  line-height: 1.35;
  transition: color var(--duration-fast), transform var(--duration-fast);
}
.hkp-footer-column a::before {
  content: "";
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width var(--duration-fast), margin var(--duration-fast);
}
.hkp-footer-column a:hover {
  color: var(--color-white);
  transform: translateX(2px);
}
.hkp-footer-column a:hover::before {
  width: 16px;
  margin-right: 8px;
}
.hkp-footer-contact-card {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(21, 25, 34, 0.72);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}
.hkp-footer-section-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hkp-footer-contact-card address {
  margin: 22px 0 24px;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  line-height: 1.55;
}
.hkp-footer-contact-card address strong {
  display: block;
  color: var(--color-white);
  font-weight: 800;
}
.hkp-footer-contact-card address span { display: block; margin-top: 8px; }
.hkp-footer-contact-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hkp-footer-contact-card li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.hkp-footer-contact-card li + li { margin-top: 18px; }
.hkp-footer-contact-card svg {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: var(--radius-md);
  color: var(--brand-primary);
  background: rgba(245, 166, 35, 0.13);
}
.hkp-footer-contact-card a,
.hkp-footer-contact-card span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.45;
}
.hkp-footer-contact-card a {
  color: var(--color-white);
  font-weight: 800;
}
.hkp-footer-contact-card a:hover { color: var(--brand-primary); }
.hkp-footer-company-meta {
  margin: 24px 0 0;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.56);
  font: 600 12px/1.5 var(--font-mono);
}
.hkp-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}
.hkp-footer-bottom p { margin: 0; }
.hkp-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.hkp-footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}
.hkp-footer-bottom a:hover { color: var(--color-white); }
@media (max-width: 1180px) {
  .hkp-footer-main { grid-template-columns: 1fr 1fr; }
  .hkp-footer-contact-card { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .hkp-footer-main { grid-template-columns: 1fr; }
  .hkp-footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .hkp-footer { padding-bottom: 76px; }
  .hkp-footer-proof-grid,
  .hkp-footer-nav { grid-template-columns: 1fr; }
  .hkp-footer-proof-grid div { min-height: auto; }
  .hkp-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* === IntersectionObserver reveal === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out-quint), transform 700ms var(--ease-out-quint); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* Stagger - kazdy element czeka --i * 60ms */
.reveal-stagger { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out-quint), transform 600ms var(--ease-out-quint); transition-delay: calc(var(--i, 0) * 55ms); }
.reveal-stagger.is-in { opacity: 1; transform: translateY(0); }

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

/* === Sticky CTA mobile === */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 120%);
  z-index: 40;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 12px 16px;
  background: var(--brand-primary);
  color: var(--color-graphite);
  border-radius: var(--radius-full);
  font: 700 14px/1 var(--font-headline);
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(245, 166, 35, 0.4);
  transition: transform var(--duration-base) var(--ease-out-quint), background var(--duration-base);
}
.sticky-cta.is-visible { transform: translate(-50%, 0); }
.sticky-cta:hover { background: var(--brand-primary-hover); color: var(--color-graphite); }
.sticky-cta:active { transform: translate(-50%, 0) scale(0.97); }
.sticky-cta .icon { width: 18px; height: 18px; }
.sticky-cta-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--color-graphite); color: var(--brand-primary);
  border-radius: 50%;
}
@media (max-width: 767px) {
  .sticky-cta { display: inline-flex; }
}

/* === Sekcja .section-dark z tekstura spoina === */
.section-dark.with-texture {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.section-dark.with-texture::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("../img/codex/tlo-spoina.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  mix-blend-mode: lighten;
  pointer-events: none;
}
.section-dark.with-texture::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(37,43,56,0.65) 0%, rgba(37,43,56,0.92) 100%);
  pointer-events: none;
}

/* Akcent: cienka czerwona linia na top sekcji ciemnej */
.section-dark.with-accent { border-top: 2px solid var(--brand-primary); }

/* === Tabula tabeli - smooth fade dla filtra === */
.spec-table tbody tr { transition: background var(--duration-fast), opacity 220ms ease, transform 220ms ease; }
.spec-table tr.is-hidden { display: none; }

/* === H1/H2 text-balance dla lepszego lamania === */
h1, h2, h3, .section-heading { text-wrap: balance; }
.section-lead, .hero-lead { text-wrap: pretty; }

/* === Subtle divider w tabeli === */
.table-wrap { position: relative; }
.table-wrap::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-primary) 14%, transparent 14%, transparent 100%);
}

/* === Brand chips - lekka animacja na hover === */
.brand-chip { transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast); }
.brand-chip:hover { background: var(--color-graphite); color: var(--brand-primary); border-color: var(--color-graphite); transform: translateY(-2px); }

/* === Order-path: lekkie podbicie na hover === */
.order-path { transition: transform var(--duration-base) var(--ease-out-quint), box-shadow var(--duration-base); }
.order-path:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* === Hook-type karty hover === */
.hook-type { transition: transform var(--duration-base) var(--ease-out-quint), box-shadow var(--duration-base), border-color var(--duration-base); }
.hook-type:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(245, 166, 35, 0.4); }

/* === Hero-meta wartosci - lepszy akcent na liczbach === */
.hero-meta dd { font-variant-numeric: tabular-nums; }
.hero-meta dd .unit { color: rgba(255,255,255,0.65); font-weight: 500; margin-left: 4px; font-size: 0.85em; }

/* === Eyebrow z kropka amber jako wskaznik (zamiast kreski) === */
.eyebrow {
  position: relative;
  padding-left: 16px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--brand-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.18);
}
.hero-eyebrow { padding-left: 16px; position: relative; }
.hero-eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; background: var(--brand-primary); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.22);
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 60;
  background: var(--color-graphite);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
  border-top: 2px solid var(--brand-primary);
  padding: 22px 26px;
  max-width: 980px;
  margin: 0 auto;
  animation: cookie-slide-up 420ms var(--ease-out-quint) both;
}
@keyframes cookie-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.cookie-banner h3 { margin: 0 0 6px; color: #fff; font: 700 16px/1.2 var(--font-headline); }
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.78); }
.cookie-banner a { color: var(--brand-primary); }
.cookie-banner a:hover { color: var(--brand-primary-hover); }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner-actions .btn-outline { color: var(--color-white); border-color: rgba(255,255,255,0.35); }
.cookie-banner-actions .btn-outline:hover { background: var(--color-white); color: var(--color-graphite); }
@media (max-width: 767px) {
  .cookie-banner { padding: 18px 18px; left: 8px; right: 8px; bottom: 8px; }
  .cookie-banner-inner { grid-template-columns: 1fr; gap: 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}

/* === Brand chips note === */
.brand-chips-note {
  margin-top: 18px;
  color: var(--color-steel);
  font-style: italic;
  font-size: 15px;
}

/* === Ikony Codex === */
.icon-codex { width: 24px; height: 24px; flex-shrink: 0; }

/* Karta "Rodzaje hakow" - ikona nad tytulem */
.hook-type-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-paper-warm);
  color: var(--brand-primary-active);
  display: grid; place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--color-line);
}
.icon-hook { width: 36px; height: 36px; stroke-width: 1.4; }

/* Tech list - ikony Codex zamiast numeru */
.tech-list .tech-ic {
  width: 48px; height: 48px;
  background: rgba(245, 166, 35, 0.12);
  color: var(--brand-primary);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  border: 1px solid rgba(245, 166, 35, 0.22);
}
.section-dark .tech-list .tech-ic { background: rgba(245, 166, 35, 0.1); border-color: rgba(245, 166, 35, 0.18); }
.icon-tech { width: 26px; height: 26px; }
.tech-list li { grid-template-columns: 48px 1fr; }

/* Certyfikaty - ikona inline z nazwa */
.cert-ico {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  vertical-align: middle;
  color: var(--brand-primary);
  margin-right: 10px;
}
.icon-cert { width: 22px; height: 22px; }

/* Dowod rejestracyjny - ikona w docs-box */
.docs-box { position: relative; }
.docs-icon {
  width: 44px; height: 44px;
  background: var(--brand-primary);
  color: var(--color-graphite);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.docs-icon.docs-icon-inline {
  display: inline-grid;
  margin: 0 0 14px;
}
.icon-docs { width: 26px; height: 26px; stroke-width: 1.8; }

/* Hero - pas 3 zalet pod CTA */
.hero-caps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 720px;
}
.hero-caps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding-top: 8px;
}
.icon-hero { width: 28px; height: 28px; color: var(--brand-primary); }
.hero-caps li span { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.78); }
.hero-caps li strong { color: var(--color-white); font: 700 14px/1.2 var(--font-headline); }

@media (max-width: 767px) {
  .hero-caps {
    width: 100%;
    max-width: 340px;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px;
  }
  .hero-caps li {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding-top: 0;
    text-align: center;
  }
  .hero-caps li span { align-items: center; }
}

/* === Subtle highlight dla CF7-formularza === */
.form { position: relative; overflow: hidden; }
.form::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
}

/* === Notki sluzbowe (dev) === */
.dev-banner {
  position: fixed; left: 12px; bottom: 12px; z-index: 200;
  background: var(--color-red); color: #fff;
  font: 700 12px/1 var(--font-headline); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 14px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

/* === Placeholder dla obrazow z Codeksu === */
.placeholder {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.04) 0 14px, transparent 14px 28px),
    linear-gradient(140deg, var(--color-paper-warm) 0%, #e8e1d2 100%);
  color: var(--color-steel);
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}
.hero-bg .placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 18px, transparent 18px 36px),
    linear-gradient(140deg, #1a2236 0%, #2c3a52 100%);
  color: rgba(255,255,255,0.55);
}

/* === Brand SVG (inline w headerze, opcjonalnie animowany on-load) === */
.brand svg.logo-anim {
  display: block;
  height: 38px; width: auto;
  max-width: 240px;
  overflow: visible;
}
.header .brand svg.logo-anim { height: 38px; }
@media (max-width: 1199px) { .header .brand svg.logo-anim { height: 34px; } }
@media (max-width: 575px)  { .header .brand svg.logo-anim { height: 30px; } }

.brand .wipe-rect { transform-box: fill-box; }

/* Animacja TYLKO gdy klasa .brand--animate (JS dodaje przy kazdym loadzie) */
.brand--animate .layer-ball   { opacity: 0; animation: ll-fadeIn  .45s ease-out  .15s forwards; }
.brand--animate .layer-hakpol { opacity: 0; animation: ll-fadeIn  .55s ease-out 2.45s forwards; }
.brand--animate .wipe-hook    { transform-origin: left center; transform: scaleX(0);
                                animation: ll-drawHook .90s cubic-bezier(.45,.05,.25,1) .55s forwards; }
.brand--animate .wipe-imiola  { transform-origin: left center; transform: skewX(-11deg) scaleX(0);
                                animation: ll-writeWord 1.00s linear 1.45s forwards; }

@keyframes ll-fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes ll-drawHook { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes ll-writeWord {
  0%   { transform: skewX(-11deg) scaleX(0);    }
  1%   { transform: skewX(-11deg) scaleX(0);    }
  12%  { transform: skewX(-11deg) scaleX(.190); }
  16%  { transform: skewX(-11deg) scaleX(.190); }
  28%  { transform: skewX(-11deg) scaleX(.391); }
  32%  { transform: skewX(-11deg) scaleX(.391); }
  44%  { transform: skewX(-11deg) scaleX(.482); }
  48%  { transform: skewX(-11deg) scaleX(.482); }
  61%  { transform: skewX(-11deg) scaleX(.654); }
  65%  { transform: skewX(-11deg) scaleX(.654); }
  78%  { transform: skewX(-11deg) scaleX(.781); }
  82%  { transform: skewX(-11deg) scaleX(.781); }
  96%  { transform: skewX(-11deg) scaleX(1);    }
  100% { transform: skewX(-11deg) scaleX(1);    }
}

/* Reduced-motion: bez animacji, logo od razu finalne */
@media (prefers-reduced-motion: reduce) {
  .brand--animate * { animation: none !important; }
  .brand--animate .layer-ball, .brand--animate .layer-hakpol { opacity: 1 !important; }
  .brand--animate .wipe-hook { transform: scaleX(1) !important; }
  .brand--animate .wipe-imiola { transform: skewX(-11deg) scaleX(1) !important; }
}

/* === Industrial texture overlay - Niestandardowe === */
/* === Subtelne tekstury w narożnikach z fade-out mask (nie "prostokątna plama") === */
/* Niestandardowe: tlo-stal jako industrial accent na prawej krawędzi sekcji */
#niestandardowe {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
#niestandardowe::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 55%;
  z-index: -1;
  background-image: url("../img/codex/tlo-stal.webp");
  background-size: cover;
  background-position: 100% 50%;
  opacity: 0.10;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 35%, black 75%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 35%, black 75%, transparent 100%);
  pointer-events: none;
}

/* Jak zamówić: tlo-perforacja jako blueprint accent w lewym górnym narożniku z radial fade */
#zamowienie {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
#zamowienie::before {
  content: "";
  position: absolute;
  top: -10%; left: -8%;
  width: 60%; height: 80%;
  z-index: -1;
  background-image: url("../img/codex/tlo-perforacja.webp");
  background-size: cover;
  background-position: 30% 40%;
  background-repeat: no-repeat;
  opacity: 0.08;
  -webkit-mask-image: radial-gradient(ellipse at 25% 30%, black 0%, rgba(0,0,0,0.5) 45%, transparent 75%);
          mask-image: radial-gradient(ellipse at 25% 30%, black 0%, rgba(0,0,0,0.5) 45%, transparent 75%);
  pointer-events: none;
}

@media (max-width: 767px) {
  #niestandardowe::before { width: 100%; opacity: 0.05; }
  #zamowienie::before { width: 100%; height: 50%; opacity: 0.06; }
}

/* === Video modal (popup po klikniciu video-card) === */
.video-modal {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(10, 13, 20, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 280ms var(--ease-out-quint);
}
.video-modal[hidden] { display: none; }
.video-modal.is-open { opacity: 1; }
.video-modal-stage {
  position: relative;
  width: 100%;
  max-width: 1400px;
  max-height: 100%;
  display: grid; gap: 14px;
}
.video-modal-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: scale(0.96);
  transition: transform 320ms var(--ease-out-quint);
}
.video-modal.is-open .video-modal-player { transform: scale(1); }
.video-modal-player video {
  width: 100%; height: 100%;
  display: block;
  background: #000;
  border-radius: var(--radius-md);
}
.video-modal-caption {
  color: rgba(255, 255, 255, 0.85);
  font: 500 14px/1.4 var(--font-headline);
  letter-spacing: 0.02em;
  text-align: center;
}
.video-modal-close {
  position: absolute;
  top: -54px; right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 0; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--duration-fast);
}
.video-modal-close:hover { background: rgba(255, 255, 255, 0.22); }
.video-modal-close .icon { width: 22px; height: 22px; }

@media (max-width: 767px) {
  .video-modal { padding: 12px; }
  .video-modal-close { top: -50px; right: 6px; width: 40px; height: 40px; }
}

/* === Form: enhancements (zalacznik z drag-drop, checkbox zgody, submit, mniejszy spacing) === */
.form .field label { margin-bottom: 4px; }

.form .field input, .form .field select, .form .field textarea,
.form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-file):not([type="checkbox"]):not([type="radio"]):not(.wpcf7-acceptance) {
  font: 500 15.5px/1.5 var(--font-body);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 2px rgba(26,31,42,0.04);
  transition: border-color 280ms var(--ease-out-quint), box-shadow 280ms var(--ease-out-quint);
}
.form .field input::placeholder, .form .field textarea::placeholder { color: var(--color-steel-light); }
.form .field input:hover, .form .field select:hover, .form .field textarea:hover { border-color: var(--color-steel-light); }
.form .field input:focus, .form .field select:focus, .form .field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: inset 0 1px 2px rgba(26,31,42,0.04), 0 0 0 4px rgba(245,166,35,0.18);
}
.form textarea, .form .wpcf7-textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.form .field select, .form .wpcf7-select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F5A623' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form .field input[type="number"], .form .wpcf7-number {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* File drop zone */
.form .field--file { position: relative; }
.form .field--file input[type="file"],
.form .field--file .wpcf7-file {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  border: 0; background: transparent; padding: 0;
}
.form .field--file .dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 140px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(245,166,35,0.03) 0%, var(--color-white) 100%);
  border: 2px dashed var(--color-line);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color 240ms, background 240ms, transform 240ms;
}
.form .field--file:hover .dropzone {
  border-color: var(--brand-primary);
  background: linear-gradient(180deg, rgba(245,166,35,0.07) 0%, var(--color-white) 100%);
}
.form .field--file.is-dragover .dropzone {
  border-color: var(--brand-primary);
  background: linear-gradient(180deg, rgba(245,166,35,0.16) 0%, rgba(245,166,35,0.06) 100%);
  transform: scale(1.012);
}
.form .field--file .dropzone-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(245,166,35,0.14);
  display: grid; place-items: center;
  color: var(--brand-primary);
  transition: background 240ms, transform 240ms;
}
.form .field--file.is-dragover .dropzone-icon { background: var(--brand-primary); color: var(--color-graphite); transform: translateY(-2px); }
.form .field--file .dropzone-icon svg { width: 22px; height: 22px; }
.form .field--file .dropzone-text {
  font: 600 14px/1.4 var(--font-headline);
  color: var(--color-graphite);
}
.form .field--file .dropzone-text strong { color: var(--brand-primary-active); }
.form .field--file .dropzone-hint {
  font: 500 12px/1.3 var(--font-body);
  color: var(--color-steel-light);
  letter-spacing: 0.02em;
}
.form .field--file .dropzone-files {
  font: 600 13px/1.4 var(--font-mono);
  color: var(--color-graphite);
  margin: 6px 0 0; padding: 0; list-style: none;
}
.form .field--file .dropzone-files li { padding: 2px 0; }
.form .field--file .dropzone-files li::before { content: "✓ "; color: var(--color-success); margin-right: 4px; }

/* Checkbox zgody (acceptance) */
.form .wpcf7-acceptance .wpcf7-list-item,
.form .field--acceptance .wpcf7-list-item { display: block; margin: 0; padding: 0; }
.form .wpcf7-acceptance .wpcf7-list-item-label,
.form .field--acceptance .wpcf7-list-item-label {
  display: inline-flex !important;
  align-items: flex-start; gap: 12px;
  font: 500 13.5px/1.55 var(--font-body) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--color-steel) !important;
  cursor: pointer;
}
.form .wpcf7-acceptance a, .form .field--acceptance a {
  color: var(--brand-primary-active);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form .wpcf7-acceptance a:hover { color: var(--brand-primary); }
.form input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin: 1px 0 0;
  background: var(--color-white);
  border: 1.5px solid var(--color-line);
  border-radius: 5px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 160ms, background 160ms, box-shadow 160ms;
}
.form input[type="checkbox"]::after {
  content: "";
  width: 11px; height: 7px;
  border-left: 2px solid var(--color-graphite);
  border-bottom: 2px solid var(--color-graphite);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transform-origin: center;
  transition: transform 200ms var(--ease-out-quint);
}
.form input[type="checkbox"]:hover { border-color: var(--brand-primary); }
.form input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(245,166,35,0.22);
  outline: none; border-color: var(--brand-primary);
}
.form input[type="checkbox"]:checked {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}
.form input[type="checkbox"]:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }

/* Submit button - shimmer + lift */
.form .wpcf7-submit, .form button[type="submit"] {
  position: relative;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
  color: var(--color-graphite);
  font: 800 15px/1 var(--font-headline);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 22px 32px;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 280ms var(--ease-out-quint), box-shadow 280ms var(--ease-out-quint);
  box-shadow:
    0 8px 24px rgba(245,166,35,0.38),
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 -1px 0 rgba(26,31,42,0.08) inset;
  margin-top: 14px;
}
.form .wpcf7-submit::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-150%);
  transition: transform 700ms var(--ease-out-quint);
  pointer-events: none;
}
.form .wpcf7-submit:hover, .form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(245,166,35,0.48),
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 -1px 0 rgba(26,31,42,0.08) inset;
}
.form .wpcf7-submit:hover::before { transform: translateX(150%); }
.form .wpcf7-submit:active, .form button[type="submit"]:active { transform: translateY(0); }

/* CF7 validation */
.form .wpcf7-not-valid {
  border-color: var(--color-red) !important;
  box-shadow: inset 0 1px 2px rgba(26,31,42,0.04), 0 0 0 4px rgba(215,38,56,0.16) !important;
}
.form .wpcf7-not-valid-tip {
  display: block;
  margin: 6px 0 0;
  font: 500 12.5px/1.3 var(--font-body);
  color: var(--color-red);
}
.form .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--color-line) !important;
  font: 500 14px/1.5 var(--font-body);
  background: var(--color-paper-warm);
}
.form .wpcf7-mail-sent-ok .wpcf7-response-output {
  border-color: var(--color-success);
  background: rgba(46,166,114,0.08);
  color: var(--color-success);
}

.form .wpcf7-spinner { margin: 0 0 0 12px; width: 18px; height: 18px; background: var(--color-graphite); }
