/*!
 * Polyverde Sp. z o.o. – style.css
 * Design system: tokeny, typografia, komponenty, efekty (glassmorphism, izometryczny grid),
 * stany focus/hover, animacje. Współpracuje z Tailwind CSS (Play CDN).
 */

/* =========================================================================
   1. Kroje pisma (self-hosted, SIL Open Font License 1.1)
   ========================================================================= */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('../fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================================
   2. Tokeny
   ========================================================================= */
:root {
  --pv-primary: #0A3A2A;
  --pv-primary-deep: #072A1F;
  --pv-secondary: #14532D;
  --pv-accent: #10B981;
  --pv-accent-bright: #34D399;
  --pv-accent-ink: #047857;
  --pv-accent-pale: #A7F3D0;
  --pv-dark: #1E293B;
  --pv-muted: #64748B;
  --pv-light: #F8FAFC;
  --pv-mint: #ECFDF5;
  --pv-line: #E2E8F0;
  --pv-line-strong: #CBD5E1;
  --pv-white: #FFFFFF;
  --pv-danger: #B91C1C;
  --pv-danger-bg: #FEF2F2;
  --pv-danger-line: #FECACA;

  --pv-font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pv-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --pv-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --pv-header-h: 72px;
  --pv-radius-sm: 6px;
  --pv-radius: 10px;
  --pv-radius-lg: 16px;
  --pv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pv-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -16px rgba(10, 58, 42, 0.22);
  --pv-shadow-lift: 0 2px 4px rgba(15, 23, 42, 0.05), 0 22px 44px -20px rgba(10, 58, 42, 0.32);

  --pv-iso-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='32.332' viewBox='0 0 56 32.332'%3E%3Cpath d='M0 0L56 32.332M0 32.332L56 0M0 0V32.332M28 0V32.332' fill='none' stroke='rgba(16,185,129,0.15)' stroke-width='0.75'/%3E%3C/svg%3E");
  --pv-iso-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='32.332' viewBox='0 0 56 32.332'%3E%3Cpath d='M0 0L56 32.332M0 32.332L56 0M0 0V32.332M28 0V32.332' fill='none' stroke='rgba(20,83,45,0.09)' stroke-width='0.75'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* =========================================================================
   3. Baza
   ========================================================================= */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--pv-header-h);
  scrollbar-color: var(--pv-secondary) var(--pv-light);
  scrollbar-width: thin;
}

body {
  font-family: var(--pv-font-body);
  color: var(--pv-dark);
  background: var(--pv-white);
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
}

html.modal-open,
html.modal-open body {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(16, 185, 129, 0.28);
  color: var(--pv-primary);
}

/* Przewijany pasek – WebKit / Blink (starsze wersje) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--pv-light); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pv-secondary), var(--pv-primary));
  border: 3px solid var(--pv-light);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--pv-accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--pv-font-display);
  text-wrap: balance;
}

p { text-wrap: pretty; }

section[id] { scroll-margin-top: var(--pv-header-h); }

.num {
  font-family: var(--pv-font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: 'zero' 1;
  letter-spacing: -0.01em;
  font-weight: 500;
}

sub { font-size: 0.72em; vertical-align: -0.2em; line-height: 0; }

/* Wartości liczbowe w tekście ciągłym nie są dzielone między wiersze */
:where(p, li, dd, .chain__metric, .feature-card__metric) .num { white-space: nowrap; }

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

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Fokus – widoczny wyłącznie przy nawigacji klawiaturą */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--pv-accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
:where(.site-header, .hero, .section-dark, .site-footer, .company-card, .map-card, .product-card--featured) :where(a, button, [tabindex]):focus-visible {
  outline-color: var(--pv-accent);
}
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: var(--pv-radius-sm);
  background: var(--pv-accent);
  color: var(--pv-primary);
  font: 700 0.95rem/1 var(--pv-font-display);
  transition: top 0.2s var(--pv-ease);
}
.skip-link:focus { top: 0.75rem; }

/* =========================================================================
   4. Efekty tła – izometryczny grid inżynieryjny
   ========================================================================= */
.iso-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 56px 32.332px;
  background-position: center top;
}
.iso-grid--dark { background-image: var(--pv-iso-dark); }
.iso-grid--light { background-image: var(--pv-iso-light); }

.hero__grid {
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 72% 32%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 70% at 72% 32%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 80%);
}

.section__grid {
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 70%);
}

/* =========================================================================
   5. Przyciski
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--pv-font-display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--pv-ease), color 0.2s var(--pv-ease), border-color 0.2s var(--pv-ease), box-shadow 0.25s var(--pv-ease), transform 0.25s var(--pv-ease);
}
.btn-lg { min-height: 52px; padding: 0.9rem 1.5rem; font-size: 1rem; }

.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--pv-ease);
}
.btn:hover .btn__icon { transform: translateX(3px); }

.btn-primary {
  background: var(--pv-accent);
  color: var(--pv-primary);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 20px -10px rgba(16, 185, 129, 0.7);
}
.btn-primary:hover {
  background: var(--pv-accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 14px 28px -12px rgba(16, 185, 129, 0.85);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
}
.btn-ghost:hover {
  border-color: var(--pv-accent);
  background: rgba(16, 185, 129, 0.1);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  border-color: var(--pv-secondary);
  color: var(--pv-secondary);
}
.btn-outline:hover {
  background: var(--pv-secondary);
  color: #FFFFFF;
}

.btn[disabled],
.btn[aria-busy='true'] {
  cursor: progress;
  opacity: 0.85;
  transform: none;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pv-spin 0.7s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }

/* =========================================================================
   6. Header – frosted glass
   ========================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(10, 58, 42, 0.9);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s var(--pv-ease), border-color 0.3s var(--pv-ease), background-color 0.3s var(--pv-ease);
}
.site-header .btn { white-space: nowrap; }
.site-header.is-scrolled {
  border-bottom-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.6);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(10, 58, 42, 0.98); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  border-radius: 6px;
}
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--pv-font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #FFFFFF;
}
.brand__sub {
  margin-top: 0.35rem;
  white-space: nowrap;
  font-family: var(--pv-font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--pv-accent);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  font-family: var(--pv-font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(236, 253, 245, 0.8);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--pv-ease), background-color 0.2s var(--pv-ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--pv-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--pv-ease);
}
.nav-link:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.nav-link.is-active { color: #FFFFFF; }
.nav-link.is-active::after { transform: scaleX(1); }

.lang-switch {
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}
.lang-btn {
  min-width: 36px;
  white-space: nowrap;
  min-height: 32px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-family: var(--pv-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(236, 253, 245, 0.72);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--pv-ease), color 0.2s var(--pv-ease), box-shadow 0.2s var(--pv-ease);
}
.lang-btn:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.lang-btn[aria-pressed='true'],
.lang-btn.is-active {
  background: var(--pv-accent);
  color: var(--pv-primary);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.45), 0 6px 16px -6px rgba(16, 185, 129, 0.75);
}

.menu-toggle {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #FFFFFF;
  transition: transform 0.3s var(--pv-ease), opacity 0.2s var(--pv-ease);
}
.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  max-height: calc(100vh - var(--pv-header-h));
  max-height: calc(100dvh - var(--pv-header-h));
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 58, 42, 0.97);
}
.mobile-menu.is-open { animation: pv-drop 0.28s var(--pv-ease); }
.mobile-menu__list { display: grid; gap: 2px; }
.mobile-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--pv-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(236, 253, 245, 0.88);
  text-decoration: none;
}
.mobile-link:hover,
.mobile-link.is-active { color: var(--pv-accent); }

/* =========================================================================
   7. Hero
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  background:
    radial-gradient(1100px 620px at 82% 8%, rgba(16, 185, 129, 0.2), transparent 62%),
    radial-gradient(900px 520px at -5% 105%, rgba(20, 83, 45, 0.95), transparent 70%),
    linear-gradient(160deg, var(--pv-primary) 0%, #0B3426 55%, var(--pv-primary-deep) 100%);
}
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.45), transparent);
}

.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  font-family: var(--pv-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.45;
  color: var(--pv-accent-pale);
}
.badge-tech__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--pv-accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pv-blink 2.6s ease-in-out infinite;
}

.hero__title {
  margin-top: 1.5rem;
  font-size: clamp(2.2rem, 4.3vw, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: #FFFFFF;
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 40rem;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: rgba(236, 253, 245, 0.84);
}
.hero__lead .num { color: var(--pv-accent-pale); font-size: 0.94em; }

/* Sekwencja wejścia (jedyny orkiestrowany moment animacji) */
.hero__intro > *,
.spec-panel {
  opacity: 0;
  transform: translateY(14px);
}
html.is-ready .hero__intro > *,
html.is-ready .spec-panel {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--pv-ease), transform 0.7s var(--pv-ease);
}
html.is-ready .hero__intro > :nth-child(2) { transition-delay: 0.08s; }
html.is-ready .hero__intro > :nth-child(3) { transition-delay: 0.16s; }
html.is-ready .hero__intro > :nth-child(4) { transition-delay: 0.24s; }
html.is-ready .spec-panel { transition-delay: 0.3s; }

/* Karta parametrów glicerolu – glassmorphism */
.spec-panel {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: var(--pv-radius-lg);
  background: linear-gradient(160deg, rgba(20, 83, 45, 0.55), rgba(7, 42, 31, 0.45));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.spec-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.spec-panel__title {
  font-family: var(--pv-font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
}
.spec-panel__code { font-size: 0.78rem; color: var(--pv-accent); white-space: nowrap; }

.spec-panel__molecule {
  position: relative;
  margin: 1rem 0 0.5rem;
  padding: 0.5rem 0 0.75rem;
  border-radius: var(--pv-radius);
  background-image: var(--pv-iso-dark);
  background-size: 28px 16.166px;
  background-position: center;
}
.spec-panel__molecule svg { display: block; width: 100%; height: auto; max-height: 150px; }
.molecule__bonds path {
  fill: none;
  stroke: var(--pv-accent-pale);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
}
html.is-ready .molecule__bonds path { animation: pv-draw 1.4s 0.45s var(--pv-ease) forwards; }
.molecule__c { fill: var(--pv-accent); }
.molecule__o { fill: var(--pv-primary); stroke: var(--pv-accent); stroke-width: 2; }
.molecule__labels text {
  font-family: var(--pv-font-mono);
  font-size: 13px;
  font-weight: 600;
  fill: #FFFFFF;
}
.molecule__labels .molecule__index { font-size: 9.5px; font-weight: 500; fill: rgba(167, 243, 208, 0.65); }
.spec-panel__iupac {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(167, 243, 208, 0.75);
}

.spec-list { margin-top: 0.5rem; }
.spec-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
}
.spec-list__row dt { color: rgba(236, 253, 245, 0.68); }
.spec-list__row dd { color: #FFFFFF; text-align: right; }

.purity { margin-top: 1.1rem; }
.purity__title {
  margin-bottom: 0.6rem;
  font-family: var(--pv-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(236, 253, 245, 0.85);
}
.purity__row + .purity__row { margin-top: 0.7rem; }
.purity__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  color: rgba(236, 253, 245, 0.7);
}
.purity__value { color: var(--pv-accent); font-weight: 600; }
.purity__track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.purity__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--from);
  width: calc(var(--to) - var(--from));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
}
html.is-ready .purity__fill { transform: scaleX(1); transition: transform 1.6s 0.6s var(--pv-ease); }
.purity__fill--crude { background: linear-gradient(90deg, rgba(167, 243, 208, 0.45), rgba(167, 243, 208, 0.8)); }
.purity__fill--refined { background: linear-gradient(90deg, var(--pv-secondary), var(--pv-accent)); box-shadow: 0 0 12px rgba(16, 185, 129, 0.6); }
.purity__scale {
  position: relative;
  height: 1rem;
  margin-top: 0.35rem;
  font-size: 0.64rem;
  color: rgba(236, 253, 245, 0.5);
}
.purity__scale span { position: absolute; top: 0; transform: translateX(-50%); }
.purity__scale span:nth-child(1) { left: 0; transform: none; }
.purity__scale span:nth-child(2) { left: 20%; }
.purity__scale span:nth-child(3) { left: 44%; }
.purity__scale span:nth-child(4) { left: auto; right: 0; transform: none; }

/* KPI */
.kpi-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 3.25rem; } }

.kpi-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.25rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.kpi-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--pv-accent), transparent 75%);
}
.kpi-card__value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.1em;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  color: #FFFFFF;
  white-space: nowrap;
}
.kpi-card__unit {
  margin-left: 0.4em;
  font-size: 0.58em;
  font-weight: 600;
  color: var(--pv-accent);
}
.kpi-card__label {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(236, 253, 245, 0.7);
}
.kpi-card__label .num { color: rgba(167, 243, 208, 0.85); font-size: 0.95em; }

/* =========================================================================
   8. Sekcje – wspólne
   ========================================================================= */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.section-dark {
  overflow: hidden;
  color: #FFFFFF;
  background:
    radial-gradient(900px 480px at 100% 0%, rgba(16, 185, 129, 0.14), transparent 60%),
    linear-gradient(180deg, var(--pv-primary), var(--pv-primary-deep));
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--pv-dark);
}
.section-dark .section-title { color: #FFFFFF; }

.section-lead {
  margin-top: 1rem;
  max-width: 62ch;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--pv-muted);
}
.section-dark .section-lead { color: rgba(236, 253, 245, 0.78); }

/* =========================================================================
   9. O nas
   ========================================================================= */
.address-block {
  display: flex;
  gap: 0.9rem;
  margin-top: 2rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--pv-line);
  border-left: 3px solid var(--pv-accent);
  border-radius: var(--pv-radius);
  background: var(--pv-white);
}
.address-block__icon {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 0.15rem;
  fill: none;
  stroke: var(--pv-accent-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.address-block__label { font-family: var(--pv-font-display); font-size: 0.82rem; font-weight: 700; color: var(--pv-muted); }
.address-block__value { margin-top: 0.25rem; font-weight: 500; line-height: 1.55; color: var(--pv-dark); }
.address-block__geo { margin-top: 0.35rem; font-size: 0.78rem; color: var(--pv-accent-ink); }

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--pv-line);
  border-radius: var(--pv-radius-lg);
  background: var(--pv-white);
  box-shadow: var(--pv-shadow-card);
  transition: border-color 0.25s var(--pv-ease), box-shadow 0.25s var(--pv-ease), transform 0.25s var(--pv-ease);
}
.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: var(--pv-shadow-lift);
  transform: translateY(-2px);
}
.feature-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.feature-card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 12px;
  background: var(--pv-mint);
  color: var(--pv-accent-ink);
}
.feature-card__icon svg,
.quality-card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card__metric {
  padding: 0.3rem 0.6rem;
  border-radius: var(--pv-radius-sm);
  background: var(--pv-mint);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pv-secondary);
  text-align: right;
}
.feature-card__metric .num { font-weight: 600; }
.feature-card__title {
  margin-top: 1.4rem;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pv-dark);
}
.feature-card__list { margin-top: 1rem; display: grid; gap: 0.7rem; }
.feature-card__list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
}
.feature-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--pv-accent);
  transform: rotate(45deg);
}
.feature-card__list .num { font-size: 0.9em; color: var(--pv-secondary); font-weight: 600; }

/* =========================================================================
   10. Oferta – karty produktowe i tabele specyfikacji
   ========================================================================= */
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--pv-line);
  border-radius: var(--pv-radius-lg);
  background: var(--pv-white);
  box-shadow: var(--pv-shadow-card);
  transition: box-shadow 0.25s var(--pv-ease), border-color 0.25s var(--pv-ease);
}
.product-card:hover { border-color: rgba(16, 185, 129, 0.4); box-shadow: var(--pv-shadow-lift); }

.product-card__head {
  padding: 1.6rem 1.6rem 1.4rem;
  border-bottom: 1px solid var(--pv-line);
  background: linear-gradient(180deg, var(--pv-mint), var(--pv-white));
}
.product-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--pv-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pv-accent-ink);
}
.product-card__tag .num {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border-radius: var(--pv-radius-sm);
  background: var(--pv-secondary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
}
.product-card__name {
  margin-top: 0.9rem;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--pv-dark);
}
.product-card__desc { margin-top: 0.6rem; font-size: 0.93rem; line-height: 1.6; color: var(--pv-muted); }
.product-card__desc .num { color: var(--pv-secondary); font-weight: 600; }

.product-card--featured { border-color: rgba(16, 185, 129, 0.45); box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2), var(--pv-shadow-lift); }
.product-card--featured .product-card__head {
  border-bottom-color: rgba(16, 185, 129, 0.3);
  background:
    var(--pv-iso-dark) center / 28px 16.166px,
    linear-gradient(150deg, var(--pv-secondary), var(--pv-primary));
}
.product-card--featured .product-card__tag { color: var(--pv-accent-pale); }
.product-card--featured .product-card__tag .num { background: var(--pv-accent); color: var(--pv-primary); }
.product-card--featured .product-card__name { color: #FFFFFF; }
.product-card--featured .product-card__desc { color: rgba(236, 253, 245, 0.8); }
.product-card--featured .product-card__desc .num { color: var(--pv-accent-pale); }

.gauge { margin-top: 1.2rem; }
.gauge__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--pv-muted);
}
.gauge__meta .num { color: var(--pv-accent-ink); font-weight: 600; }
.gauge__track {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(10, 58, 42, 0.08);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(10, 58, 42, 0.12) calc(10% - 1px) 10%);
}
.gauge__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--from);
  width: calc(var(--to) - var(--from));
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pv-secondary), var(--pv-accent));
}
.product-card--featured .gauge__meta { color: rgba(236, 253, 245, 0.75); }
.product-card--featured .gauge__meta .num { color: var(--pv-accent); }
.product-card--featured .gauge__track {
  background-color: rgba(255, 255, 255, 0.1);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(255, 255, 255, 0.12) calc(10% - 1px) 10%);
}

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.spec-table th,
.spec-table td {
  padding: 0.72rem 1.6rem;
  vertical-align: top;
  text-align: left;
  border-top: 1px solid var(--pv-line);
}
.spec-table tbody tr:first-child th,
.spec-table tbody tr:first-child td { border-top: 0; }
.spec-table th[scope='row'] {
  width: 44%;
  padding-right: 0.75rem;
  font-weight: 500;
  color: var(--pv-muted);
}
.spec-table td { color: var(--pv-dark); line-height: 1.55; }
.spec-table td.num,
.spec-table td .num { font-weight: 600; color: var(--pv-dark); }
.spec-table tr.is-key { background: var(--pv-mint); }
.spec-table tr.is-key th[scope='row'] { color: var(--pv-accent-ink); font-weight: 600; }
.spec-table__note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--pv-muted);
}
.spec-table__note .num { font-weight: 500 !important; color: var(--pv-muted) !important; }

.product-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.25rem 1.6rem 0;
}

.product-card__foot { margin-top: auto; padding: 1.25rem 1.6rem 1.6rem; }

.offer-note {
  margin-top: 1.75rem;
  max-width: 70ch;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--pv-muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--pv-radius-sm);
  background: var(--pv-mint);
  font-family: var(--pv-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pv-accent-ink);
  white-space: nowrap;
}
.chip-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

/* =========================================================================
   11. Logistyka – interaktywny łańcuch dostaw
   ========================================================================= */
.route-line { font-size: 0.82rem; color: var(--pv-accent-pale); }

.chain {
  --chain-progress: 0%;
  position: relative;
  margin-top: 3rem;
}
.chain__progress { display: none; }
.chain__list { display: grid; gap: 1.75rem; }
.chain__item { position: relative; }

.chain__step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding: 1.2rem 1.2rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s var(--pv-ease), background-color 0.3s var(--pv-ease), box-shadow 0.3s var(--pv-ease), transform 0.3s var(--pv-ease);
}
.chain__step:hover {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.06);
}
.chain__step[aria-pressed='true'],
.chain__step.is-active {
  border-color: var(--pv-accent);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.18), rgba(20, 83, 45, 0.45));
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35), 0 18px 40px -20px rgba(16, 185, 129, 0.6);
}
.chain__head { display: flex; align-items: center; justify-content: space-between; }
.chain__num { font-size: 0.82rem; font-weight: 600; color: var(--pv-accent); }
.chain__icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--pv-accent-pale);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}
.chain__step.is-active .chain__icon { stroke: var(--pv-accent); opacity: 1; }
.chain__title {
  margin-top: 0.35rem;
  font-family: var(--pv-font-display);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
}
.chain__loc { font-size: 0.7rem; line-height: 1.45; color: rgba(167, 243, 208, 0.62); }
.chain__metric {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.25rem 0.55rem;
  border-radius: var(--pv-radius-sm);
  background: rgba(16, 185, 129, 0.12);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--pv-accent-pale);
}
.chain__metric .num { font-weight: 600; }
.chain__desc {
  padding: 0.75rem 0.25rem 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(236, 253, 245, 0.75);
}
.chain__desc .num { color: var(--pv-accent-pale); font-size: 0.92em; }

.chain__arrow {
  position: absolute;
  left: 50%;
  bottom: -1.5rem;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  fill: none;
  stroke: var(--pv-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(90deg);
}

.chain__detail { display: none; }

@media (min-width: 1024px) {
  .chain { margin-top: 3.5rem; padding-top: 1.75rem; }
  .chain__progress {
    display: block;
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
  }
  .chain__progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--chain-progress);
    border-radius: 2px;
    background: linear-gradient(90deg, var(--pv-secondary), var(--pv-accent));
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
    transition: width 0.6s var(--pv-ease);
  }
  .chain__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .chain__step { height: 100%; }
  .chain__item::before {
    content: '';
    position: absolute;
    top: -1.75rem;
    left: 50%;
    width: 11px;
    height: 11px;
    margin: -5px 0 0 -5.5px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: var(--pv-primary);
    transition: border-color 0.3s var(--pv-ease), background-color 0.3s var(--pv-ease);
  }
  .chain__item.is-done::before,
  .chain__item.is-current::before {
    border-color: var(--pv-accent);
    background: var(--pv-accent);
  }
  .chain__desc { display: none; }
  .chain__arrow {
    left: auto;
    right: -1.2rem;
    top: 50%;
    bottom: auto;
    width: 16px;
    height: 16px;
    margin: -8px 0 0;
    transform: none;
  }
  .chain__detail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.75rem;
    margin-top: 1.5rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    background: rgba(7, 42, 31, 0.6);
  }
  .chain__detail.is-swapping > * { animation: pv-fade 0.45s var(--pv-ease); }
  .chain__detail-num { font-size: 1.6rem; font-weight: 600; color: var(--pv-accent); white-space: nowrap; }
  .chain__detail-title { font-family: var(--pv-font-display); font-size: 1.15rem; font-weight: 700; color: #FFFFFF; }
  .chain__detail-text { margin-top: 0.3rem; max-width: 70ch; line-height: 1.6; color: rgba(236, 253, 245, 0.8); }
  .chain__detail-text .num { color: var(--pv-accent-pale); font-size: 0.92em; }
  .chain__detail-metric {
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--pv-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pv-accent-pale);
    white-space: nowrap;
  }
}

/* =========================================================================
   12. Jakość
   ========================================================================= */
.quality-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--pv-line);
  border-radius: 14px;
  background: var(--pv-white);
  box-shadow: var(--pv-shadow-card);
}
.quality-card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--pv-secondary), var(--pv-primary));
  color: var(--pv-accent);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.3);
}
.quality-card__title { font-size: 1.12rem; font-weight: 700; line-height: 1.35; color: var(--pv-dark); }
.quality-card__text { margin-top: 0.55rem; font-size: 0.96rem; line-height: 1.65; color: #475569; }
.quality-card__text .num { color: var(--pv-secondary); font-weight: 600; font-size: 0.92em; }

/* =========================================================================
   13. Kontakt – formularz RFQ
   ========================================================================= */
.rfq-form {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--pv-line);
  border-radius: var(--pv-radius-lg);
  background: var(--pv-white);
  box-shadow: var(--pv-shadow-card);
}
.rfq-form__title {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pv-dark);
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field__label {
  font-family: var(--pv-font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--pv-dark);
}
.field__req { margin-left: 0.2rem; color: var(--pv-accent-ink); font-weight: 700; }

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--pv-line-strong);
  border-radius: 8px;
  background: var(--pv-white);
  font-family: var(--pv-font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--pv-dark);
  transition: border-color 0.2s var(--pv-ease), box-shadow 0.2s var(--pv-ease), background-color 0.2s var(--pv-ease);
}
.field__input.num { font-family: var(--pv-font-mono); }
.field__input::placeholder { color: #94A3B8; opacity: 1; }
.field__input:hover { border-color: #94A3B8; }
.field__input:focus {
  outline: none;
  border-color: var(--pv-accent-ink);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.field__input[aria-invalid='true'] { border-color: var(--pv-danger); background: #FFFBFB; }
.field__input[aria-invalid='true']:focus { box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.15); }

.field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px 18px;
  cursor: pointer;
}
.field__select.is-flash { animation: pv-flash 1.4s var(--pv-ease); }

.field__textarea { min-height: 150px; resize: vertical; }

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--pv-danger);
}
.field__error::before { content: '!'; display: inline-grid; place-items: center; width: 1rem; height: 1rem; flex: none; margin-top: 0.08rem; border-radius: 50%; background: var(--pv-danger); color: #FFFFFF; font-size: 0.68rem; font-weight: 700; }

.field--check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 0.75rem;
  row-gap: 0.4rem;
  padding: 1rem;
  border: 1px solid var(--pv-line);
  border-radius: var(--pv-radius);
  background: var(--pv-light);
}
.field--check .field__error { grid-column: 1 / -1; }
.field__check {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: 0.05rem;
  border: 1.5px solid var(--pv-line-strong);
  border-radius: 5px;
  background: var(--pv-white);
  cursor: pointer;
  transition: background-color 0.2s var(--pv-ease), border-color 0.2s var(--pv-ease), box-shadow 0.2s var(--pv-ease);
}
.field__check:hover { border-color: var(--pv-accent-ink); }
.field__check:checked {
  border-color: var(--pv-accent);
  background: var(--pv-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A3A2A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
}
.field__check:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3); }
.field__check[aria-invalid='true'] { border-color: var(--pv-danger); }
.field__check-label { font-size: 0.9rem; line-height: 1.6; color: #334155; cursor: pointer; }

.link-inline {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--pv-accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-inline:hover { color: var(--pv-secondary); text-decoration-thickness: 2px; }

.form-status {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--pv-radius);
  font-size: 0.95rem;
  line-height: 1.55;
  animation: pv-fade 0.35s var(--pv-ease);
}
.form-status--success { border-color: rgba(16, 185, 129, 0.4); background: var(--pv-mint); color: #065F46; }
.form-status--error { border-color: var(--pv-danger-line); background: var(--pv-danger-bg); color: #991B1B; }

/* Karta danych spółki */
.company-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--pv-radius-lg);
  background: linear-gradient(150deg, var(--pv-secondary), var(--pv-primary) 70%);
  color: #FFFFFF;
  box-shadow: var(--pv-shadow-lift);
}
.company-card__grid {
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000, transparent 65%);
  mask-image: radial-gradient(circle at 100% 0%, #000, transparent 65%);
}
.company-card__name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}
.company-card__list { display: grid; gap: 1.25rem; margin-top: 1.4rem; }
.company-card__list dt {
  font-family: var(--pv-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pv-accent-pale);
}
.company-card__list dd { margin-top: 0.3rem; font-size: 0.95rem; line-height: 1.65; color: rgba(255, 255, 255, 0.92); }
.company-card__list address { font-style: normal; }
.company-card__court { display: inline-block; margin-top: 0.3rem; font-size: 0.8rem; line-height: 1.5; color: rgba(236, 253, 245, 0.65); }
.company-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 185, 129, 0.5);
  transition: color 0.2s var(--pv-ease), border-color 0.2s var(--pv-ease);
  word-break: break-all;
}
.company-card__link svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--pv-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.company-card__link:hover { color: var(--pv-accent); border-color: var(--pv-accent); }

/* Mapa logistyczna */
.map-card {
  padding: 1.25rem;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--pv-radius-lg);
  background:
    radial-gradient(400px 260px at 50% 45%, rgba(16, 185, 129, 0.1), transparent 70%),
    #06281D;
  color: #FFFFFF;
}
.map-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-family: var(--pv-font-display);
  font-size: 0.9rem;
  font-weight: 700;
}
.map-card__head .num { font-size: 0.75rem; font-weight: 500; color: var(--pv-accent); }
.map { display: block; width: 100%; height: auto; }
.map__land { fill: rgba(20, 83, 45, 0.55); stroke: rgba(16, 185, 129, 0.45); stroke-width: 1.1; stroke-linejoin: round; }
.map__sea { font-family: var(--pv-font-mono); font-size: 10px; letter-spacing: 0.18em; fill: rgba(167, 243, 208, 0.45); }
.map__motorway { fill: none; stroke: rgba(248, 250, 252, 0.38); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.map__road-label { font-family: var(--pv-font-mono); font-size: 9px; font-weight: 600; fill: rgba(248, 250, 252, 0.6); }
.map__sea-route { fill: none; stroke: var(--pv-accent); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1 6; }
.map__route-label { font-family: var(--pv-font-mono); font-size: 9px; fill: var(--pv-accent); }
.map__rail { fill: none; stroke: var(--pv-accent); stroke-width: 2; stroke-dasharray: 5 3; stroke-linejoin: round; }
.map__road { fill: none; stroke: var(--pv-accent-pale); stroke-width: 2.2; stroke-dasharray: 2 3; stroke-linecap: round; }
.map__km { font-size: 9.5px; font-weight: 600; fill: var(--pv-accent-pale); }
.map__city circle { fill: #FFFFFF; }
.map__city text { font-family: var(--pv-font-body); font-size: 10.5px; font-weight: 500; fill: rgba(236, 253, 245, 0.82); }
.map__city--node circle { fill: var(--pv-accent-pale); stroke: var(--pv-primary); stroke-width: 1.5; }
.map__hub-core { fill: var(--pv-accent); stroke: #FFFFFF; stroke-width: 2; }
.map__hub-pulse { fill: rgba(16, 185, 129, 0.35); transform-origin: 182.4px 186.6px; animation: pv-pulse 2.4s ease-out infinite; }
.map__hub text { font-family: var(--pv-font-display); font-size: 12px; font-weight: 800; fill: #FFFFFF; }

.map-legend { display: grid; gap: 0.4rem; margin: 0.9rem 0 1.1rem; font-size: 0.8rem; color: rgba(236, 253, 245, 0.75); }
.map-legend li { display: flex; align-items: center; gap: 0.6rem; }
.map-legend__line { display: inline-block; width: 26px; height: 0; flex: none; border-top: 2px solid; }
.map-legend__line--rail { border-top-style: dashed; border-color: var(--pv-accent); }
.map-legend__line--road { border-top-style: dotted; border-color: var(--pv-accent-pale); border-top-width: 3px; }
.map-legend__line--motorway { border-color: rgba(248, 250, 252, 0.45); }

/* =========================================================================
   14. Stopka
   ========================================================================= */
.site-footer {
  position: relative;
  color: rgba(236, 253, 245, 0.75);
  background: linear-gradient(180deg, var(--pv-primary), var(--pv-primary-deep));
}
.footer-title {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
}
.footer-links { display: grid; gap: 0.55rem; font-size: 0.92rem; }
.footer-links a,
.footer-company a {
  color: rgba(236, 253, 245, 0.78);
  text-decoration: none;
  transition: color 0.2s var(--pv-ease);
}
.footer-links a:hover,
.footer-company a:hover { color: var(--pv-accent); }
.footer-company { font-size: 0.88rem; line-height: 1.75; }
.footer-company strong { color: #FFFFFF; font-weight: 600; }
.footer-company .num { font-size: 0.92em; }
.footer-link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: rgba(236, 253, 245, 0.78);
  text-decoration: underline;
  text-decoration-color: rgba(16, 185, 129, 0.5);
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer-link-btn:hover { color: var(--pv-accent); }

/* =========================================================================
   15. Okno modalne – Polityka prywatności / RODO
   ========================================================================= */
.modal {
  width: min(780px, calc(100% - 2rem));
  max-width: none;
  max-height: min(88vh, 920px);
  padding: 0;
  border: 0;
  border-radius: var(--pv-radius-lg);
  background: var(--pv-white);
  color: var(--pv-dark);
  box-shadow: 0 40px 80px -30px rgba(2, 20, 14, 0.7);
  overflow: hidden;
}
.modal[open] { display: flex; animation: pv-modal-in 0.28s var(--pv-ease); }
.modal::backdrop {
  background: rgba(4, 24, 17, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal__panel { display: flex; flex-direction: column; width: 100%; max-height: inherit; }
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--pv-line);
  background: linear-gradient(180deg, var(--pv-mint), var(--pv-white));
}
.modal__title { font-size: 1.2rem; font-weight: 800; line-height: 1.3; color: var(--pv-dark); }
.modal__close {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--pv-line);
  border-radius: 8px;
  background: var(--pv-white);
  color: var(--pv-dark);
  cursor: pointer;
  transition: background-color 0.2s var(--pv-ease), border-color 0.2s var(--pv-ease);
}
.modal__close:hover { border-color: var(--pv-accent-ink); background: var(--pv-mint); }
.modal__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 1.25rem 1.5rem 1.75rem; }
.modal__foot { display: flex; justify-content: flex-end; padding: 1rem 1.5rem; border-top: 1px solid var(--pv-line); background: var(--pv-light); }

.policy { font-size: 0.94rem; line-height: 1.7; color: #334155; }
.policy h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pv-dark);
}
.policy p + p { margin-top: 0.6rem; }
.policy ul { margin: 0.5rem 0 0.6rem; padding-left: 1.25rem; list-style: disc; }
.policy li + li { margin-top: 0.35rem; }
.policy li::marker { color: var(--pv-accent-ink); }
.policy a { color: var(--pv-accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.policy .policy-meta {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--pv-radius-sm);
  background: var(--pv-mint);
  font-family: var(--pv-font-mono);
  font-size: 0.75rem;
  color: var(--pv-accent-ink);
}

/* =========================================================================
   16. Animacje
   ========================================================================= */
@keyframes pv-spin { to { transform: rotate(360deg); } }
@keyframes pv-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes pv-draw { to { stroke-dashoffset: 0; } }
@keyframes pv-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pv-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pv-modal-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes pv-pulse { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes pv-flash { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); border-color: var(--pv-accent); } 100% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .hero__intro > *,
  .spec-panel { opacity: 1; transform: none; }
  .molecule__bonds path { stroke-dashoffset: 0; }
  .purity__fill { transform: scaleX(1); }
  .map__hub-pulse { display: none; }
}

/* Bez JavaScriptu – treść hero widoczna od razu */
@media (scripting: none) {
  .hero__intro > *,
  .spec-panel { opacity: 1; transform: none; }
  .molecule__bonds path { stroke-dashoffset: 0; }
  .purity__fill { transform: scaleX(1); }
}

/* =========================================================================
   17. Wydruk (karty specyfikacji)
   ========================================================================= */
@media print {
  .site-header,
  .skip-link,
  .mobile-menu,
  .hero__grid,
  .iso-grid,
  .rfq-form,
  .map-card,
  .modal,
  .btn,
  .chain__detail,
  .chain__arrow { display: none !important; }
  body { color: #000; background: #fff; }
  .hero,
  .section-dark,
  .site-footer,
  .company-card { background: #fff !important; color: #000 !important; }
  .hero *,
  .section-dark *,
  .site-footer *,
  .company-card * { color: #000 !important; }
  .hero__intro > *,
  .spec-panel { opacity: 1 !important; transform: none !important; }
  .chain__desc { display: block !important; }
  .product-card,
  .feature-card,
  .quality-card { break-inside: avoid; box-shadow: none; }
  .section { padding-block: 1.5rem; }
}
