/* ==========================================================================
   Asensor Group Sp. z o.o. — Clean Modern Stylesheet (1:1 Visual Fidelity)
   ========================================================================== */

/* Google Fonts ładowane nieblokująco przez <link rel="preconnect"> + <link rel="stylesheet"> w <head> (jednolity krój Manrope 400–800) */

:root {
  /* Brand Colors (from Elementor Kit 6) */
  --color-primary: #1E5B7A;
  --color-secondary: #174A65;
  --color-accent: #061E2E;
  --color-green-light: #3FAE49;
  --color-green: #2E8F37;
  --color-green-dark: #1F6E27;
  --color-text: #3A3A42;
  --color-text-muted: #7A7A82;
  --color-dark: #0B0B10;
  --color-border: #E5E5EA;
  --color-surface: #F0F0F2;
  --color-bg: #FAFAFA;
  --color-white: #FFFFFF;

  /* Brand Gradients */
  --gradient-light-tile: linear-gradient(145deg, #F4F4F6 0%, #EDEDF0 100%);
  --gradient-brand-blue: linear-gradient(145deg, #1E5B7A 0%, #061E2E 100%);
  --gradient-brand-green: linear-gradient(145deg, #2E8F37 0%, #133F18 100%);
  --gradient-hero-blue: linear-gradient(180deg, rgba(30, 91, 122, 0.86) 0%, rgba(6, 30, 46, 0.94) 100%);
  --gradient-hero-green: linear-gradient(180deg, rgba(46, 143, 55, 0.25) 0%, rgba(19, 64, 24, 0.25) 98%);

  /* Jednolita typografia dla całej witryny — Manrope (realne grubości 400–800, pełny zestaw polskich znaków) */
  --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: var(--font-primary);
  --font-display: var(--font-primary);
  --font-ui: var(--font-primary);
  --font-mono: var(--font-primary);

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 9px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 30px;
  --shadow-card: 0 4px 20px rgba(6, 30, 46, 0.08);
  --shadow-elevated: 0 10px 30px rgba(6, 30, 46, 0.16);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-y: visible;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea,
code,
kbd,
pre {
  font-family: inherit;
}

main,
.site-footer {
  max-width: 100%;
  overflow-x: clip;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

ul, ol {
  list-style: none;
}

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

/* Typography Helpers */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.eyebrow--light {
  color: var(--color-surface);
}

.eyebrow--green {
  color: var(--color-green);
}

.eyebrow--muted {
  color: var(--color-text-muted);
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.section-title--light {
  color: var(--color-white);
}

.section-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  max-width: 720px;
}

.section-lead--light {
  color: var(--color-surface);
}

.text-green {
  color: var(--color-green);
}

.text-muted-blue {
  color: #838c97;
}

/* Anchored sections offset for sticky header */
section[id],
div[id="symulator-telemetrii"],
div[id="kontakt-iot"] {
  scroll-margin-top: 96px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  cursor: pointer;
  background-color: rgba(250, 250, 250, 0.9);
  color: var(--color-green-dark);
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn--light {
  background-color: var(--color-surface);
  color: var(--color-dark);
  border-color: transparent;
}

.btn--light:hover {
  background-color: var(--color-white);
}

.btn--dark {
  background-color: var(--color-accent);
  color: var(--color-border);
  border-color: var(--color-accent);
}

.btn--dark:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.btn--blue {
  background: var(--gradient-brand-blue);
  color: var(--color-white);
  border-color: transparent;
}

.btn--green {
  background: var(--gradient-brand-green);
  color: var(--color-white);
  border-color: transparent;
}

.btn--outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn--outline-light:hover {
  background: var(--color-white);
  color: var(--color-accent);
}

/* ==========================================================================
   1. SPLIT-SCREEN INTRO PAGE (index.html - ID 266 & o-firmie - ID 7)
   ========================================================================== */
.intro-split {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

main > .intro-split,
.intro-split--page {
  min-height: 640px;
}

.intro-pane {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 60px 90px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

main > .intro-split .intro-pane,
.intro-split--page .intro-pane {
  min-height: 640px;
  padding: 48px 60px 88px;
}

.intro-pane__content,
.intro-pane__body {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.intro-pane__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
}

.intro-pane--left {
  width: 50%;
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  background-color: var(--color-accent);
}

.intro-pane--left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 91, 122, 0.84) 0%, rgba(6, 30, 46, 0.92) 100%);
  z-index: 1;
  pointer-events: none;
}

.intro-pane--right {
  width: calc(50% + 120px);
  margin-left: -120px;
  padding-left: 160px;
  z-index: 1;
  background-color: #EDEDF0;
}

.intro-pane--right::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(244, 244, 246, 0.84);
  background-image: url("../../assets/2026/05/Siatka-architektoniczna-1.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.84;
  z-index: 1;
  pointer-events: none;
}

.intro-logo {
  position: relative;
  z-index: 2;
  width: 150px;
}

.intro-partner-logo,
.intro-pane__hyundai {
  position: relative;
  z-index: 2;
  width: 220px;
  margin-bottom: 6px;
}

.intro-heading,
.intro-pane__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 70px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.intro-pane--left .intro-heading,
.intro-pane--left .intro-pane__title {
  color: var(--color-bg);
}

.intro-pane--right .intro-heading,
.intro-pane--right .intro-pane__title {
  color: var(--color-dark);
}

.intro-desc,
.intro-pane__desc {
  font-size: 16px;
  line-height: 1.65;
}

.intro-pane--left .intro-desc,
.intro-pane--left .intro-pane__desc {
  color: var(--color-surface);
  max-width: 460px;
}

.intro-pane--right .intro-desc,
.intro-pane--right .intro-pane__desc {
  color: var(--color-text);
  max-width: 500px;
}

/* ==========================================================================
   2. SITE HEADER (Elementor Header ID 28)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 960;
  overflow: visible;
  background-color: rgba(250, 250, 250, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo img {
  height: 46px;
  width: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__link {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  padding: 6px 2px;
  position: relative;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--color-primary);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  width: 100%;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header__phone {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.site-header__phone:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ==========================================================================
   3. HERO SECTIONS & SECTIONS LAYOUT
   ========================================================================== */
.hero-banner {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  padding: 90px 0;
  background-color: var(--color-accent);
  background-image: var(--gradient-brand-blue);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 30, 46, 0.88) 0%, rgba(30, 91, 122, 0.72) 100%);
  z-index: 1;
}

.hero-banner--gradient {
  background: linear-gradient(135deg, #061E2E 0%, #133B54 52%, #1E5B7A 100%);
}

.hero-banner--gradient::before {
  background: radial-gradient(circle at 82% 24%, rgba(56, 189, 248, 0.14) 0%, transparent 55%),
              linear-gradient(135deg, rgba(6, 30, 46, 0.92) 0%, rgba(30, 91, 122, 0.76) 100%);
}

.hero-banner--green::before {
  background: linear-gradient(135deg, rgba(6, 30, 46, 0.88) 0%, rgba(19, 63, 24, 0.78) 100%);
}

.hero-banner__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-banner__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 20px;
  color: var(--color-white);
}

.hero-banner__desc {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.section {
  padding: 88px 0;
}

.section--surface {
  background-color: var(--color-surface);
}

.section--dark {
  background: var(--gradient-brand-blue);
  color: var(--color-white);
}

.section-header {
  margin-bottom: 48px;
}

.section-header--center {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.section-header--center .section-lead {
  margin-inline: auto;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tile {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--gradient-light-tile);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 229, 234, 0.8);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tile--blue {
  background: var(--gradient-brand-blue);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-elevated);
}

.tile--green {
  background: var(--gradient-brand-green);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-elevated);
}

.tile--white {
  background: var(--color-white);
}

.tile__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-accent);
}

.tile--blue .tile__title,
.tile--green .tile__title {
  color: var(--color-white);
}

.tile__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
}

.tile--blue .tile__text,
.tile--green .tile__text {
  color: rgba(255, 255, 255, 0.88);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-green);
  flex-shrink: 0;
}

.tile--blue .check-list li::before {
  color: #7bdcb5;
}

.tile__footer {
  margin-top: auto;
  padding-top: 12px;
}

/* Emergency CTA Banner */
.emergency-bar {
  background: var(--gradient-brand-blue);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: var(--shadow-elevated);
}

.emergency-bar__info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.emergency-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Brand Pills / Manufacturers Grid */
.brands-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.brand-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}

.brand-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.brand-card p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* Counters Bar */
.counters-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.counter-box {
  padding: 32px 24px;
  border-right: 1px solid var(--color-border);
  text-align: center;
}

.counter-box:last-child {
  border-right: none;
}

.counter-box__value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.counter-box__label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* N:EX Configurator Tabs */
.configurator {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover,
.tab-btn.is-active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.tab-panel img {
  max-height: 560px;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* Accordions (Other Hyundai Models) */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-item summary {
  padding: 20px 26px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

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

.accordion-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--color-green);
}

.accordion-item[open] summary::after {
  content: "−";
}

.accordion-item__body {
  padding: 0 26px 26px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.specs-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.spec-pill {
  background: var(--color-surface);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
}

.spec-pill__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.spec-pill__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
}

/* Contact Section & Compact Form (#asensor-cf7) */
.contact-layout,
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.contact-layout--quote {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
}

.contact-layout--v2 {
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  align-items: start;
}

.contact-layout > *,
.contact-split > * {
  min-width: 0;
  max-width: 100%;
}

.contact-person-card {
  background: var(--gradient-light-tile);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
}

.contact-person-card h3 {
  font-size: 20px;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.contact-person-card .role {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.contact-person-card ul li {
  font-family: var(--font-mono);
  font-size: 14px;
  margin-top: 6px;
}

#asensor-cf7,
.form-card {
  background: var(--color-white);
  padding: 32px 34px;
  border-radius: 22px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#asensor-cf7 .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#asensor-cf7 .form-grid > * {
  min-width: 0;
  max-width: 100%;
}

#asensor-cf7 .form-field--full {
  grid-column: 1 / -1;
}

#asensor-cf7 .field-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-accent);
}

#asensor-cf7 input[type="text"],
#asensor-cf7 input[type="email"],
#asensor-cf7 input[type="tel"],
#asensor-cf7 select,
#asensor-cf7 textarea,
.form-control {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid #D6D5D5;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--color-dark);
  background: var(--color-bg);
  text-overflow: ellipsis;
}

#asensor-cf7 input:focus,
#asensor-cf7 select:focus,
#asensor-cf7 textarea:focus,
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
}

#asensor-cf7 textarea {
  min-height: 105px;
  resize: vertical;
}

#asensor-cf7 .form-consent {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #52525B;
}

#asensor-cf7 .form-consent a {
  color: #174A65;
  font-weight: 600;
}

#asensor-cf7 .form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

#asensor-cf7 .form-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

#asensor-cf7 .form-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

#asensor-cf7 .form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13px;
  display: none;
}

#asensor-cf7 .form-status.is-visible {
  display: block;
  background-color: #D4E9D6;
  color: #1F6E27;
}

/* ==========================================================================
   4. SITE FOOTER (Elementor Footer ID 41)
   ========================================================================== */
.site-footer {
  background-color: var(--color-accent);
  color: rgba(255, 255, 255, 0.82);
  padding: 64px 0 28px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__brand img {
  width: 145px;
  margin-bottom: 16px;
}

.site-footer__brand p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.site-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.site-footer__col h6 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 16px;
}

.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__col a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__col a:hover {
  color: var(--color-white);
}

.site-footer__bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__legal {
  display: flex;
  gap: 20px;
}

/* Legal Document Content */
.legal-content {
  background: var(--color-white);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.legal-content h2,
.legal-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 6px;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brands-layout,
  .contact-layout,
  .contact-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .counters-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .intro-split {
    display: block;
    min-height: auto;
  }
  .intro-pane--left,
  .intro-pane--right {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    clip-path: none;
    min-height: 520px;
    padding: 32px 24px 60px;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .site-header__actions .site-header__phone {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .brands-grid,
  .counters-bar,
  .site-footer__grid,
  #asensor-cf7 .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #asensor-cf7,
  .form-card {
    padding: 22px 18px;
  }
  .tile {
    padding: 24px 18px;
  }
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    height: auto;
    padding: 12px 18px;
  }
  .counter-box {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .section {
    padding: 56px 0;
  }
  .legal-content {
    padding: 28px 20px;
  }
}

/* ==========================================================================
   6. STREFA LOGOWANIA (BUTTON & MODAL HUB)
   ========================================================================== */
.btn-login-hub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-login-hub:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-white);
}

.btn-login-hub.is-opening {
  animation: login-button-pulse 360ms ease-out;
}

@keyframes login-button-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 91, 122, .35); }
  35% { transform: scale(.96); box-shadow: 0 0 0 5px rgba(30, 91, 122, .2); }
  100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(30, 91, 122, 0); }
}

.btn-login-hub--floating {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 60;
  background: rgba(6, 30, 46, 0.78);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn-login-hub--floating:hover {
  background: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-white);
}

.login-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 30, 46, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-modal-backdrop.is-open {
  display: flex;
  animation: login-backdrop-in 220ms ease-out;
}

.login-modal-backdrop.is-open .login-modal {
  animation: login-panel-in 320ms cubic-bezier(.22, 1, .36, 1) backwards;
}

.login-modal-backdrop.is-open .login-portal-card {
  animation: login-card-in 280ms ease-out 70ms backwards;
}

.login-modal-backdrop.is-open .login-portal-card:nth-child(2) {
  animation-delay: 110ms;
}

.login-modal-backdrop.is-open .login-portal-card:nth-child(3) {
  animation-delay: 150ms;
}

@keyframes login-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes login-panel-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes login-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-login-hub.is-opening,
  .login-modal-backdrop.is-open,
  .login-modal-backdrop.is-open .login-modal,
  .login-modal-backdrop.is-open .login-portal-card {
    animation: none;
  }
}

.login-modal {
  background: var(--color-white);
  width: 100%;
  max-width: 960px;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 24px 64px rgba(6, 30, 46, 0.35);
  border: 1px solid var(--color-border);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

.login-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.login-modal__close {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--color-accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.login-modal__close:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.login-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.login-portal-card {
  background: var(--gradient-light-tile);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.login-portal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-primary);
}

.login-portal-card__title {
  font-size: 21px;
  font-weight: 700;
  color: var(--color-accent);
}

.login-portal-card__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 10px;
}

.login-portal-card__footer {
  margin-top: auto;
}

.login-portal-card .btn--disabled,
.btn--disabled {
  background: #E2E4EB !important;
  color: #7A7A86 !important;
  border: 1px solid #D0D3DE !important;
  cursor: not-allowed !important;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .login-portal-grid {
    grid-template-columns: 1fr;
  }
  .login-modal {
    padding: 28px 20px;
  }
}

/* ==========================================================================
   7. TRYB PREZENTACJI WARIANTÓW (ZAKŁADKA KONTAKT V1–V4)
   ========================================================================== */
.dev-variant-bar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(90deg, #061E2E 0%, #113850 100%);
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 20px;
  box-shadow: 0 8px 24px rgba(6, 30, 46, 0.22);
}

.dev-variant-bar.is-hidden {
  display: none;
}

.dev-variant-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.dev-variant-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7CE38B;
}

.dev-variant-bar__buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dev-variant-btn {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.dev-variant-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
}

.dev-variant-btn.is-active {
  background: #2E8F37;
  border-color: #46B950;
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(46, 143, 55, 0.4);
}

.dev-variant-hide-btn {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.dev-variant-hide-btn:hover {
  color: var(--color-white);
  border-color: var(--color-white);
}

.dev-variant-restore-pill {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 130;
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: rgba(6, 30, 46, 0.72);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  cursor: pointer;
  opacity: 0.35;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(6, 30, 46, 0.18);
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dev-variant-restore-pill:hover {
  opacity: 1;
  background: #061E2E;
  color: var(--color-white);
  transform: translateY(-1px);
}

.dev-variant-restore-pill.is-visible {
  display: inline-flex;
}

.contact-variant-panel {
  display: none;
}

.contact-variant-panel.is-active {
  display: block;
  animation: fadeInVariant 0.22s ease;
}

@keyframes fadeInVariant {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Wersja 2: Smart B2B Topic Tiles */
.topic-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.topic-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font-body);
}

.topic-tile:hover {
  border-color: var(--color-primary);
  background: var(--color-white);
}

.topic-tile.is-selected {
  border-color: var(--color-primary);
  background: rgba(30, 91, 122, 0.07);
  box-shadow: 0 0 0 2px rgba(30, 91, 122, 0.14);
}

.topic-tile--emergency.is-selected {
  border-color: #C9352B;
  background: rgba(201, 53, 43, 0.07);
  box-shadow: 0 0 0 2px rgba(201, 53, 43, 0.16);
}

.topic-tile__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
}

.topic-tile__sub {
  font-size: 12px;
  color: var(--color-text-muted);
}

.emergency-alert-box {
  display: none;
  background: linear-gradient(135deg, #2A0C0E 0%, #4E1418 100%);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 120, 120, 0.35);
}

.emergency-alert-box.is-visible {
  display: block;
}

.emergency-alert-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #FFD2D2;
}

.emergency-alert-box p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 12px;
}

.emergency-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Wersja 3: Executive Split-Screen & Oddziały */
.exec-emergency-banner {
  background: linear-gradient(135deg, #061E2E 0%, #1E5B7A 100%);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: var(--shadow-card);
}

.exec-emergency-banner__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #D92D20;
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.exec-advisor-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}

.exec-advisor-card__role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 4px;
  display: block;
}

.exec-advisor-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.exec-advisor-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.exec-advisor-card__links a {
  color: var(--color-accent);
  font-weight: 600;
}

.exec-advisor-card__links a:hover {
  color: var(--color-primary);
}

.exec-branch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.exec-branch-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.exec-branch-box strong {
  display: block;
  font-size: 14px;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.exec-branch-box span {
  font-size: 12.5px;
  color: var(--color-text-muted);
}

/* Wersja 4: Konfigurator Szybkiej Wyceny */
.quote-step-block {
  margin-bottom: 20px;
}

.quote-step-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: block;
}

.quote-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.quote-chip svg.chip-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: color 0.16s ease;
}

.quote-chip:hover {
  border-color: var(--color-primary);
}

.quote-chip.is-selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.quote-chip.is-selected svg.chip-icon {
  color: var(--color-white);
}

.topic-tile__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topic-tile__title svg.chip-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.topic-tile--emergency .topic-tile__title svg.chip-icon {
  color: #C9352B;
}

@media (max-width: 768px) {
  .topic-selector-grid,
  .exec-branch-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   8. PODSTRONA TECHNOLOGIE / IoT (SYMULATOR TELEMETRII, PORTAL, NIS 2, CRM)
   ========================================================================== */

/* Hero KPI Strip */
.iot-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.iot-kpi-badge {
  background: rgba(6, 30, 46, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.iot-kpi-badge__val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: #7CE38B;
  letter-spacing: -0.02em;
}

.iot-kpi-badge__lbl {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

/* Pasek przycisków symulatora */
.iot-sim-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 20px;
}

.iot-sim-toolbar__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-right: 6px;
}

.iot-sim-btn {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-accent);
  cursor: pointer;
  transition: all 0.18s ease;
}

.iot-sim-btn:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.iot-sim-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(30, 91, 122, 0.25);
}

.iot-sim-btn--warn.is-active {
  background: #D97706;
  border-color: #D97706;
  color: var(--color-white);
}

.iot-sim-btn--danger.is-active {
  background: #DC2626;
  border-color: #DC2626;
  color: var(--color-white);
}

.iot-sim-btn--ok.is-active {
  background: #16A34A;
  border-color: #16A34A;
  color: var(--color-white);
}

/* ==========================================================================
   KONSOLA SYMULATORA 1:1 ASENSOR GROUP DISPATCHER & MONITOR (v2.1 OT-Core)
   ========================================================================== */

/* Duży animowany wskaźnik ze strzałką nad konsolą sugerujący zmianę widoku kabiny */
.ag-perspective-callout-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.ag-perspective-callout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #083344 0%, #0f172a 55%, #1e1b4b 100%);
  border: 2px solid #22d3ee;
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.28), 0 0 0 4px rgba(34, 211, 238, 0.12);
  color: #f8fafc;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ag-perspective-callout:hover {
  transform: translateY(-2px);
  border-color: #67e8f9;
  box-shadow: 0 16px 38px rgba(6, 182, 212, 0.4), 0 0 0 5px rgba(34, 211, 238, 0.2);
}

.ag-perspective-callout__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.65);
  color: #fde68a;
  white-space: nowrap;
  flex-shrink: 0;
}

.ag-perspective-callout__text {
  font-size: 14px;
  line-height: 1.45;
  color: #e2e8f0;
  flex: 1;
}

.ag-perspective-callout__text strong {
  color: #67e8f9;
  font-weight: 700;
}

.ag-perspective-callout__cta {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  color: #020617;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.45);
  flex-shrink: 0;
}

.ag-perspective-callout__arrow {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.18);
  border: 2px solid #22d3ee;
  color: #67e8f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.45);
  animation: ag-big-arrow-bounce 1.15s ease-in-out infinite;
}

@keyframes ag-big-arrow-bounce {
  0%, 100% {
    transform: translateY(-4px);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
  }
  50% {
    transform: translateY(6px);
    background: rgba(34, 211, 238, 0.32);
    color: #ffffff;
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.75);
  }
}

@media (max-width: 768px) {
  .ag-perspective-callout {
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 10px;
  }
  .ag-perspective-callout__text {
    flex: 1 1 100%;
    order: 2;
    font-size: 13px;
  }
  .ag-perspective-callout__badge {
    order: 1;
  }
  .ag-perspective-callout__cta {
    order: 3;
  }
  .ag-perspective-callout__arrow {
    order: 4;
    width: 42px;
    height: 42px;
  }
}

.ag-disp-app {
  background: #020617; /* slate-950 */
  color: #e2e8f0;
  border-radius: 16px;
  border: 1px solid #1e293b; /* slate-800 */
  box-shadow: 0 28px 64px rgba(2, 6, 23, 0.42);
  overflow: hidden;
  font-family: var(--font-body);
}

.ag-disp-mono {
  font-family: var(--font-mono);
}

.ag-disp-sep {
  color: #475569;
  margin: 0 4px;
}

.ag-disp-text-cyan { color: #22d3ee !important; }
.ag-disp-text-emerald { color: #34d399 !important; }
.ag-disp-text-amber { color: #fbbf24 !important; }
.ag-disp-text-rose { color: #fb7185 !important; }

/* Pasek trybu demonstracyjnego (1:1 App.tsx) */
.ag-disp-demobar {
  background: linear-gradient(90deg, rgba(8, 51, 68, 0.92) 0%, rgba(15, 23, 42, 0.96) 50%, rgba(23, 37, 84, 0.92) 100%);
  border-bottom: 1px solid rgba(6, 182, 212, 0.35);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #cbd5e1;
}

.ag-disp-demobar__left,
.ag-disp-demobar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ag-disp-demobar__badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #67e8f9;
  letter-spacing: 0.04em;
}

/* Nagłówek konsoli (1:1 Header.tsx) */
.ag-disp-header {
  background: #0f172a; /* slate-900 */
  border-bottom: 1px solid #1e293b;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.ag-disp-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ag-disp-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
  border: 1px solid rgba(103, 232, 249, 0.35);
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  color: #ffffff;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.ag-disp-header__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ag-disp-header__title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.ag-disp-version {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #083344;
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #67e8f9;
}

.ag-disp-header__sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.ag-disp-header__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ag-disp-mode-switch-outer {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ag-disp-mode-switch {
  display: inline-flex;
  background: #020617;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.18);
  gap: 4px;
}

.ag-disp-mode-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ag-disp-mode-btn:hover {
  color: #ffffff;
}

.ag-disp-mode-btn.is-suggested:not(.is-active) {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(34, 211, 238, 0.55);
  animation: ag-suggested-btn-pulse 1.6s ease-in-out infinite;
}

.ag-disp-mode-btn__Pointer {
  display: inline-block;
  color: #fbbf24;
  font-weight: 800;
  animation: ag-pointer-nudge 1s ease-in-out infinite;
}

.ag-disp-mode-btn.is-active .ag-disp-mode-btn__Pointer {
  display: none;
}

@keyframes ag-suggested-btn-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.35);
  }
  50% {
    box-shadow: 0 0 12px 2px rgba(34, 211, 238, 0.45);
  }
}

@keyframes ag-pointer-nudge {
  0%, 100% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(3px);
  }
}

.ag-disp-mode-btn.is-active {
  background: #06b6d4;
  color: #020617;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.35);
}

.ag-disp-clock {
  background: #020617;
  border: 1px solid #1e293b;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ag-disp-pulse-cyan {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.9);
  display: inline-block;
  animation: agPulse 1.8s infinite ease-in-out;
}

@keyframes agPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.88); }
}

.ag-disp-conn-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(6, 78, 59, 0.55);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ag-disp-conn-pill.is-warn {
  background: rgba(120, 53, 15, 0.6);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde68a;
}

.ag-disp-conn-pill.is-danger {
  background: rgba(136, 19, 55, 0.7);
  border-color: rgba(244, 63, 94, 0.65);
  color: #fecdd3;
}

.iot-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  display: inline-block;
}

.iot-live-dot.is-warn {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
}

.iot-live-dot.is-danger {
  background: #f43f5e;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.35);
}

.ag-disp-alarm-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ag-disp-alarm-btn.is-active {
  background: #e11d48;
  border-color: #fb7185;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.55);
  animation: agPulse 1.2s infinite ease-in-out;
}

/* Baner alarmowy EN 81-28 */
.iot-en8128-banner {
  display: none;
  background: linear-gradient(90deg, #4c0519 0%, #881337 100%);
  border-bottom: 2px solid #f43f5e;
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.iot-en8128-banner.is-visible {
  display: flex;
}

.iot-en8128-banner__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}

.iot-en8128-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  background: #e11d48;
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 4px;
}

.iot-en8128-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(251, 113, 133, 0.45);
  color: #fecdd3;
  padding: 2px 8px;
  border-radius: 4px;
}

.iot-en8128-banner__left h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.iot-en8128-banner__left p {
  font-size: 12.5px;
  color: #ffe4e6;
}

.iot-en8128-banner__right {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(2, 6, 23, 0.55);
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(251, 113, 133, 0.4);
}

.iot-audio-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.iot-audio-wave span {
  width: 3px;
  height: 10px;
  background: #fda4af;
  border-radius: 2px;
  animation: wavePulse 0.9s infinite ease-in-out alternate;
}

.iot-audio-wave span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.iot-audio-wave span:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.iot-audio-wave span:nth-child(4) { height: 14px; animation-delay: 0.45s; }

@keyframes wavePulse {
  from { transform: scaleY(0.5); }
  to { transform: scaleY(1.2); }
}

.iot-en8128-timer {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #fda4af;
}

/* Siatka 3-kolumnowa 1:1 (ShaftTile | LiftCard + LuSensorsBar | Telemetry Feed) */
.ag-disp-workspace {
  display: grid;
  grid-template-columns: 335px 1.25fr 1fr;
  gap: 16px;
  padding: 18px;
  background: #020617;
}

/* KOLUMNA 1: KAFEL SZYBU 1:1 (ShaftTile z ShaftGridView.tsx) */
.ag-shaft-tile {
  background: rgba(15, 23, 42, 0.92); /* slate-900/90 */
  border: 1px solid #1e293b;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ag-shaft-tile.is-warn {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.12);
}

.ag-shaft-tile.is-danger {
  border-color: #f43f5e;
  box-shadow: 0 0 28px rgba(244, 63, 94, 0.22);
}

.ag-shaft-tile__header {
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.85);
  border-bottom: 1px solid rgba(30, 41, 59, 0.85);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ag-shaft-tile__title-wrap {
  min-width: 0;
  flex: 1;
}

.ag-shaft-tile__name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ag-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.ag-status-dot--ok {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.ag-status-dot--warn {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.85);
}

.ag-status-dot--danger {
  background: #f43f5e;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.95);
}

.ag-shaft-tile__name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.ag-shaft-tile__loc {
  font-size: 10.5px;
  color: #94a3b8;
  margin: 2px 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-shaft-tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ag-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
}

.ag-tag--slate {
  background: #0f172a;
  border: 1px solid #334155;
  color: #cbd5e1;
}

.ag-tag--amber {
  background: rgba(69, 26, 3, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.ag-tag--emerald {
  background: rgba(6, 78, 59, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

/* Cyfrowy wyświetlacz piętra (1:1 ShaftGridView.tsx) */
.ag-digital-floor {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 5px 10px;
  min-width: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.ag-digital-floor__dir {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  color: #22d3ee;
}

.ag-digital-floor__val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

/* Pasek stanu operacyjnego (Pasażer | UDP | Drzwi & Kurtyna) */
.ag-shaft-tile__subbar {
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(30, 41, 59, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
}

.ag-subbar-left,
.ag-subbar-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ag-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ag-pill--passenger {
  background: rgba(6, 78, 59, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.ag-pill--proto {
  background: rgba(8, 51, 68, 0.75);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #67e8f9;
}

.ag-pill--door {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
}

.ag-pill--door.is-open {
  background: rgba(120, 53, 15, 0.75);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fde68a;
}

.ag-pill--curtain {
  background: rgba(136, 19, 55, 0.9);
  border: 1px solid #f43f5e;
  color: #fecdd3;
  animation: agPulse 1s infinite ease-in-out;
}

.ag-ping-rose {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 6px #f43f5e;
  display: inline-block;
}

/* WIDOK A: KLASYCZNY SZYB (1:1 ShaftGridView.tsx) */
.ag-shaft-classic {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ag-shaft-classic__hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #94a3b8;
}

.ag-shaft-classic__hint .ag-disp-mono {
  color: #38bdf8;
  font-weight: 700;
}

.ag-shaft-classic__body {
  position: relative;
  height: 400px;
  box-sizing: border-box;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 12px;
  padding: 8px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  user-select: none;
}

/* Pionowe prowadnice szybu (1:1 z ShaftGridView.tsx: left-9 / right-7) */
.ag-shaft-rail {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(30, 41, 59, 0.85);
  pointer-events: none;
  z-index: 2;
}

.ag-shaft-rail--left {
  left: 42px;
}

.ag-shaft-rail--right {
  right: 38px;
}

/* Wiersze przystanków (1:1 z ShaftGridView.tsx: inset-x-2 inset-y-2 flex-col justify-between, każdy h-9 = 36px) */
.ag-shaft-floors {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
}

.iot-floor-row {
  position: relative;
  height: 36px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 1px dashed rgba(30, 41, 59, 0.65);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  user-select: none;
}

.iot-floor-row:hover {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(34, 211, 238, 0.35);
}

.iot-floor-row .ag-fl-left {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  z-index: 12;
}

.iot-floor-row .ag-fl-call {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  color: #fbbf24;
  width: 10px;
  text-align: center;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.75);
}

.iot-floor-row .ag-fl-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: #64748b;
  width: 24px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.iot-floor-row:hover .ag-fl-num {
  color: #cbd5e1;
}

.iot-floor-row.is-current {
  background: rgba(6, 182, 212, 0.10);
  border: 1px solid rgba(6, 182, 212, 0.30);
}

.iot-floor-row.is-current .ag-fl-num {
  background: #06b6d4;
  color: #020617;
  border-color: #22d3ee;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.45);
}

.iot-floor-row.is-target:not(.is-current) {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.35);
}

.iot-floor-row.is-target:not(.is-current) .ag-fl-num {
  background: rgba(245, 158, 11, 0.20);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.50);
}

/* Wózek kabiny w szybie klasycznym (1:1 z ShaftGridView.tsx lines 494-610: left-11 right-9 h-9 = 36px, sterowany płynnie w 60 FPS przez bottom) */
.ag-cabin-box {
  position: absolute;
  left: 46px;
  right: 42px;
  height: 36px;
  box-sizing: border-box;
  z-index: 20;
  padding: 2px;
  pointer-events: none;
  will-change: bottom;
}

.ag-cabin-box__inner {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 2px solid #22d3ee;
  background: rgba(8, 51, 68, 0.85);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.ag-cabin-box.is-warn .ag-cabin-box__inner {
  border-color: #f59e0b;
  background: rgba(120, 53, 15, 0.85);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}

.ag-cabin-box.is-danger .ag-cabin-box__inner {
  border-color: #f43f5e;
  background: rgba(136, 19, 55, 0.9);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.55);
}

/* Płaty drzwi w kabinie — płynny, spokojny ruch skrzydeł (1.45s) */
.ag-cabin-wing {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48%;
  background: rgba(51, 65, 85, 0.82);
  transition: width 1.45s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease;
  z-index: 2;
  display: flex;
  align-items: center;
}

.ag-cabin-wing--left {
  left: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.45);
  justify-content: flex-end;
  padding-right: 2px;
}

.ag-cabin-wing--right {
  right: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.45);
  justify-content: flex-start;
  padding-left: 2px;
}

.ag-cabin-box__inner.is-open .ag-cabin-wing {
  width: 10%;
  background: rgba(245, 158, 11, 0.45);
}

.ag-wing-arrow {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  color: #fde68a;
}

.ag-cabin-center-badge {
  position: relative;
  z-index: 5;
  margin: 0 auto;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 4px;
  padding: 1px 5px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.ag-cabin-user-icon {
  font-size: 9px;
}

.ag-cabin-fl-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  color: #ffffff;
}

.ag-cabin-call-badge {
  position: relative;
  z-index: 6;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  color: #ffffff;
}

.ag-cabin-call-badge--car {
  background: #2563eb;
  border: 1px solid #60a5fa;
}

.ag-cabin-call-badge--hall {
  background: #d97706;
  border: 1px solid #fbbf24;
}

/* Czerwone wiązki kurtyny świetlnej w małej kabinie */
.ag-curtain-beams {
  position: absolute;
  inset: 2px 10%;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  pointer-events: none;
}

.ag-curtain-beams span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #f43f5e;
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.95);
  animation: agPulse 0.8s infinite ease-in-out;
}

/* WIDOK B: KABINA & RUCHOMY SZYB (1:1 ShaftGridView.tsx mode 'cabin') */
.ag-shaft-focus {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ag-shaft-focus__viewport {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 10px;
  height: 360px;
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow: hidden;
}

.ag-moving-strip-wrap {
  width: 68px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid #1e293b;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ag-moving-strip-track {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #1e293b;
}

.ag-moving-strip {
  position: absolute;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.ag-strip-item {
  height: 36px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.42;
  transition: opacity 0.25s ease;
}

.ag-strip-item span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
}

.ag-strip-item.is-current {
  opacity: 1;
  transform: scale(1.1);
}

.ag-strip-item.is-current span {
  background: #06b6d4;
  border-color: #67e8f9;
  color: #020617;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.55);
}

.ag-strip-pointer {
  position: absolute;
  left: 0;
  right: 0;
  height: 36px;
  border-top: 2px solid #22d3ee;
  border-bottom: 2px solid #22d3ee;
  background: rgba(6, 182, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 3px;
  pointer-events: none;
  z-index: 5;
}

.ag-strip-pointer span {
  font-size: 10px;
  color: #22d3ee;
  font-weight: 900;
}

.ag-large-cabin {
  flex: 1;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border: 2px solid #334155;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.ag-large-cabin__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid #1e293b;
  font-size: 10.5px;
  color: #94a3b8;
}

.ag-large-cabin__lamp {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ag-large-cabin__hud {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ag-cabin-d-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  background: #2563eb;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
}

.ag-large-cabin__fl {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  color: #67e8f9;
  background: #020617;
  border: 1px solid #334155;
  padding: 2px 7px;
  border-radius: 4px;
}

.ag-large-cabin__interior {
  flex: 1;
  margin: 6px 0;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ag-large-cabin__ceiling-led {
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.9);
  border-radius: 999px;
}

.ag-large-cabin__passenger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700;
  color: #6ee7b7;
}

.ag-passenger-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(6, 78, 59, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.ag-focus-wing {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, #334155 0%, #475569 100%);
  border-color: rgba(148, 163, 184, 0.75);
  transition: width 0.55s ease, opacity 0.35s ease;
  z-index: 5;
}

.ag-focus-wing--left {
  left: 0;
  border-right: 2px solid rgba(148, 163, 184, 0.8);
}

.ag-focus-wing--right {
  right: 0;
  border-left: 2px solid rgba(148, 163, 184, 0.8);
}

.ag-focus-wing.is-open {
  width: 8%;
  opacity: 0.45;
}

.ag-focus-door-Action {
  position: absolute;
  z-index: 9;
  background: rgba(69, 26, 3, 0.92);
  border: 1px solid #f59e0b;
  color: #fde68a;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 5px;
}

.ag-focus-curtain {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 14px 10px 32px;
  pointer-events: none;
}

.ag-focus-curtain__emitter {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 5px;
  background: #f43f5e;
  box-shadow: 0 0 10px #f43f5e;
  border-radius: 999px;
}

.ag-focus-curtain__emitter--l { left: 8%; }
.ag-focus-curtain__emitter--r { right: 8%; }

.ag-focus-curtain > span {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #f43f5e 0%, #f87171 50%, #f43f5e 100%);
  box-shadow: 0 0 10px #ef4444;
  animation: agPulse 0.85s infinite ease-in-out;
}

.ag-focus-curtain__alert {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(76, 5, 25, 0.95);
  border: 1.5px solid #f43f5e;
  color: #ffe4e6;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ag-large-cabin__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
  padding-top: 4px;
  border-top: 1px solid #1e293b;
}

.ag-large-cabin__footer strong {
  color: #e2e8f0;
}

.ag-shaft-tile__footer {
  padding: 9px 12px;
  background: #020617;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #64748b;
}

/* KOLUMNA 2: KARTA DŹWIGU & PASEK 12 CZUJNIKÓW LU (1:1 LiftCard.tsx & LuSensorsBar.tsx) */
.ag-lift-card,
.ag-telemetry-feed-panel {
  background: #0f172a; /* slate-900 */
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.ag-lift-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 11px;
  margin-bottom: 12px;
  border-bottom: 1px solid #1e293b;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.ag-lift-card__head .ag-disp-mono {
  color: #34d399;
}

/* 4 karty parametrów telemetrycznych */
.iot-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.iot-metric-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.iot-metric-box__lbl {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.iot-metric-box__val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
}

.iot-metric-box__sub {
  font-size: 10.5px;
  color: #94a3b8;
}

.iot-progress-bar {
  height: 5px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.iot-progress-bar__fill {
  height: 100%;
  background: #f59e0b;
  transition: width 0.35s ease;
}

.iot-progress-bar__fill--blue {
  background: #06b6d4;
}

/* Komponent 1:1 LuSensorsBar.tsx */
.ag-lu-bar {
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.ag-lu-bar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.ag-lu-bar__left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ag-lu-bar__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
}

.ag-lu-diag-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ag-lu-diag-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  cursor: help;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ag-lu-diag-badge--emerald {
  background: rgba(6, 78, 59, 0.55);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.ag-lu-diag-badge--cyan {
  background: rgba(8, 51, 68, 0.65);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #67e8f9;
}

.ag-lu-bar__hint {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 10px;
  line-height: 1.4;
}

.iot-chain-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2.5px 9px;
  border-radius: 6px;
}

.iot-chain-badge--ok {
  background: rgba(6, 78, 59, 0.65);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.iot-chain-badge--warn {
  background: rgba(120, 53, 15, 0.7);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.55);
}

/* Siatka 12 mikro-kafelków (6 kolumn x 2 rzędy) 1:1 z LuSensorsBar.tsx */
.ag-lu-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.iot-safety-node {
  position: relative;
  background: rgba(6, 78, 59, 0.28);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 7px;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  cursor: help;
  transition: all 0.18s ease;
}

.iot-safety-node:hover {
  transform: translateY(-1px);
  border-color: #38bdf8;
}

/* Dymek tooltip po najechaniu (1:1 z LuSensorsBar.tsx) */
.iot-safety-node[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: 215px;
  background: #020617;
  border: 1px solid #334155;
  color: #f1f5f9;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
  padding: 7px 9px;
  border-radius: 7px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.65);
  z-index: 40;
  pointer-events: none;
}

.ag-lu-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.85);
  margin-bottom: 2px;
}

/* Stany kafelków LuSensorsBar */
.iot-safety-node.is-idle {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.55);
}

.iot-safety-node.is-idle .ag-lu-led {
  background: #475569;
  box-shadow: none;
}

.iot-safety-node.is-idle .iot-safety-node__code { color: #94a3b8; }
.iot-safety-node.is-idle .iot-safety-node__state { color: #64748b; }

.iot-safety-node.is-active-cyan {
  background: rgba(8, 51, 68, 0.55);
  border-color: rgba(6, 182, 212, 0.5);
}

.iot-safety-node.is-active-cyan .ag-lu-led {
  background: #22d3ee;
  box-shadow: 0 0 7px rgba(34, 211, 238, 0.9);
}

.iot-safety-node.is-active-cyan .iot-safety-node__code { color: #67e8f9; }
.iot-safety-node.is-active-cyan .iot-safety-node__state { color: #22d3ee; }

.iot-safety-node.is-open {
  background: rgba(120, 53, 15, 0.45);
  border-color: #f59e0b;
}

.iot-safety-node.is-open .ag-lu-led {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.95);
}

.iot-safety-node.is-danger {
  background: rgba(136, 19, 55, 0.55);
  border-color: #f43f5e;
  animation: agPulse 1s infinite ease-in-out;
}

.iot-safety-node.is-danger .ag-lu-led {
  background: #f43f5e;
  box-shadow: 0 0 9px #f43f5e;
}

.iot-safety-node.is-danger .iot-safety-node__code,
.iot-safety-node.is-danger .iot-safety-node__state {
  color: #fda4af;
}

.iot-safety-node__code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #6ee7b7;
  line-height: 1.1;
}

.iot-safety-node.is-open .iot-safety-node__code {
  color: #fde68a;
}

.iot-safety-node__name {
  font-size: 9.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.iot-safety-node__state {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #34d399;
}

.iot-safety-node.is-open .iot-safety-node__state {
  color: #fbbf24;
}

/* Liczniki sprzętowe napędu (Jazdy / Cykle drzwi) */
.ag-drive-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: auto;
}

.ag-drive-stat-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 9px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ag-drive-stat-box__lbl {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
}

.ag-drive-stat-box__lbl strong {
  color: #cbd5e1;
}

.ag-drive-stat-box__val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
}

.ag-drive-stat-box__icon {
  font-size: 16px;
  opacity: 0.75;
}

/* KOLUMNA 3: OSTATNIE MELDUNKI TELEMETRYCZNE (1:1 LiftCard.tsx) */
.iot-dict-toggle {
  display: inline-flex;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 2px;
}

.iot-dict-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: none;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.iot-dict-btn.is-active {
  background: #06b6d4;
  color: #020617;
}

.iot-dict-explainer {
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 10px;
  line-height: 1.45;
}

.iot-event-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.iot-event-item {
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid #1e293b;
  border-left: 3px solid #06b6d4;
  border-radius: 8px;
  padding: 9px 11px;
}

.iot-event-item--ok {
  border-left-color: #10b981;
}

.iot-event-item--info {
  border-left-color: #06b6d4;
}

.iot-event-item--warn {
  border-left-color: #f59e0b;
  background: rgba(120, 53, 15, 0.16);
}

.iot-event-item--danger {
  border-left-color: #f43f5e;
  background: rgba(136, 19, 55, 0.22);
}

.iot-event-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 5px;
}

.ag-ev-badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ag-ev-sev,
.ag-ev-state,
.iot-event-item__badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
}

.ag-ev-sev--info {
  background: rgba(8, 51, 68, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: #67e8f9;
}

.ag-ev-sev--warn {
  background: rgba(120, 53, 15, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fde68a;
}

.ag-ev-sev--err {
  background: rgba(136, 19, 55, 0.9);
  border: 1px solid rgba(244, 63, 94, 0.6);
  color: #fda4af;
}

.ag-ev-state--active {
  background: rgba(6, 78, 59, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.ag-ev-state--cleared {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
}

.iot-event-item__title {
  font-size: 12px;
  line-height: 1.42;
  color: #f1f5f9;
}

.iot-panel__footer-stats {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #94a3b8;
}

/* ==========================================================================
   SEKCJA 3: PORTAL ZARZĄDCY 1:1 (WEB DARK) & APLIKACJA MOBILNA 1:1 (iOS/Android)
   ========================================================================== */
.iot-portal-showcase {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.iot-browser-mockup {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 16px;
  box-shadow: 0 24px 52px rgba(2, 6, 23, 0.32);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.iot-browser-mockup__bar {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  color: #e2e8f0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.iot-browser-dots {
  display: flex;
  gap: 6px;
}

.iot-browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.iot-browser-dots span:nth-child(2) { background: #f59e0b; }
.iot-browser-dots span:nth-child(3) { background: #22c55e; }

.iot-browser-url {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: #020617;
  border: 1px solid #1e293b;
  padding: 4px 12px;
  border-radius: 999px;
  color: #94a3b8;
}

.iot-browser-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #34d399;
}

.iot-browser-body {
  padding: 20px;
  flex: 1;
  color: #e2e8f0;
}

.iot-building-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.iot-building-tab {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid #1e293b;
  background: #0f172a;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.16s ease;
}

.iot-building-tab:hover {
  color: #ffffff;
  border-color: #334155;
}

.iot-building-tab.is-active {
  background: #06b6d4;
  border-color: #22d3ee;
  color: #020617;
  font-weight: 700;
}

/* 5 pigułek MetricsBar.tsx w Portalu */
.ag-portal-metrics-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.ag-portal-metric-pill {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 9px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ag-portal-metric-pill span {
  font-size: 9.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
}

.ag-portal-metric-pill strong {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 900;
  color: #f8fafc;
}

.ag-portal-metric-pill--emerald strong {
  color: #34d399;
}

.iot-portal-summary__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.iot-portal-summary__header h3 {
  font-size: 20px;
  color: #f8fafc;
}

.iot-portal-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.iot-portal-kpi {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.iot-portal-kpi span {
  font-size: 11px;
  color: #94a3b8;
}

.iot-portal-kpi strong {
  font-family: var(--font-mono);
  font-size: 18px;
  color: #f8fafc;
}

.iot-portal-kpi small {
  font-size: 10.5px;
  color: #64748b;
}

/* Siatka 1:1 CompactLiftGrid.tsx wewnątrz Portalu */
.ag-compact-grid-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}

.ag-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ag-compact-tile {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.18s ease;
}

.ag-compact-tile:hover {
  border-color: rgba(6, 182, 212, 0.55);
}

.ag-compact-tile__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.ag-compact-tile__top strong {
  display: block;
  font-size: 11px;
  color: #ffffff;
}

.ag-compact-tile__top small {
  display: block;
  font-size: 9.5px;
  color: #64748b;
}

.ag-compact-tile__hud {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 7px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ag-compact-tile__p {
  display: block;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 900;
  color: #22d3ee;
  line-height: 1;
}

.ag-compact-tile__hud small {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #64748b;
}

.ag-compact-tile__motion {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ag-compact-tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  padding-top: 4px;
  border-top: 1px solid rgba(30, 41, 59, 0.7);
}

.ag-compact-ok {
  background: rgba(6, 78, 59, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.ag-compact-trips {
  color: #64748b;
}

.iot-pdf-preview-box {
  display: none;
  margin-top: 14px;
  background: rgba(8, 51, 68, 0.4);
  border: 1.5px solid #06b6d4;
  border-radius: 10px;
  padding: 14px 16px;
}

.iot-pdf-preview-box.is-visible {
  display: block;
}

.iot-pdf-preview-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #67e8f9;
}

.iot-pdf-close {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #cbd5e1;
}

.iot-pdf-preview-box p {
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.55;
  margin-bottom: 10px;
}

.iot-pdf-preview-box__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #34d399;
  font-weight: 600;
}

/* Makieta 1:1 Aplikacji Mobilnej iOS / Android (DashboardScreen.tsx) */
.iot-mobile-mockup {
  display: flex;
  justify-content: center;
}

.iot-phone-frame.ag-mobile-frame {
  width: 100%;
  max-width: 370px;
  background: #090d16;
  color: #f8fafc;
  border-radius: 34px;
  border: 6px solid #1e293b;
  padding: 14px 14px 18px;
  box-shadow: 0 24px 52px rgba(2, 6, 23, 0.45);
  display: flex;
  flex-direction: column;
}

.iot-phone-notch {
  width: 88px;
  height: 13px;
  background: #020617;
  border-radius: 999px;
  margin: 0 auto 10px;
}

.ag-mobile-navbar {
  background: #0c1220;
  border-bottom: 1px solid #1e293b;
  padding: 10px 12px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ag-mobile-brand {
  color: #38bdf8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.ag-mobile-conn {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
}

.ag-mobile-conn__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.ag-mobile-settings-btn {
  background: #1e293b;
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
}

.ag-mobile-searchbar {
  padding: 8px 4px;
}

.ag-mobile-input {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 7px;
}

.ag-mobile-chips {
  display: flex;
  gap: 6px;
}

.ag-mobile-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #111827;
  border: 1px solid #1e293b;
  color: #94a3b8;
}

.ag-mobile-chip.is-active {
  background: #0891b2;
  border-color: #06b6d4;
  color: #ffffff;
}

.iot-phone-content.ag-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.iot-phone-push {
  background: rgba(8, 145, 178, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  padding: 9px 11px;
}

.iot-phone-push__app {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #7dd3fc;
  margin-bottom: 3px;
}

.iot-phone-push strong {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.iot-phone-push p {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
}

.ag-mobile-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ag-mobile-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.ag-mobile-card__head strong {
  display: block;
  font-size: 12.5px;
  color: #f8fafc;
}

.ag-mobile-card__head small {
  display: block;
  font-size: 10px;
  color: #64748b;
}

.ag-mobile-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.ag-mobile-badge--moving {
  background: rgba(8, 145, 178, 0.25);
  border: 1px solid #06b6d4;
  color: #38bdf8;
}

.ag-mobile-badge--ok {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.ag-mobile-card__metrics {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.ag-mobile-card__metrics span {
  display: block;
  font-size: 8.5px;
  color: #64748b;
  font-weight: 700;
}

.ag-mobile-card__metrics strong {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #e2e8f0;
}

.ag-mobile-card__metrics strong.ag-mobile-hl {
  color: #38bdf8;
  font-size: 12.5px;
}

.ag-mobile-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #94a3b8;
}

.ag-dot-emerald,
.ag-dot-cyan {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}

.ag-dot-emerald { background: #10b981; }
.ag-dot-cyan { background: #38bdf8; }

.ag-mobile-chevron {
  color: #38bdf8;
  font-weight: 900;
}

.iot-phone-cta {
  margin-top: auto;
  text-align: center;
  background: #0891b2;
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.18s ease;
}

.iot-phone-cta:hover {
  background: #06b6d4;
}

/* Ikony kart BMS / AMR */
.iot-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(30, 91, 122, 0.1);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.iot-card-icon svg {
  width: 24px;
  height: 24px;
}

/* Sekcja 6: Tarcza NIS 2 & CRA */
.iot-security-banner {
  background: linear-gradient(135deg, #061E2E 0%, #0F3550 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-elevated);
}

.iot-security-banner__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.iot-security-banner__title {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--color-white);
  margin: 8px 0 12px;
}

.iot-security-banner__lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 780px;
}

.iot-ce-seal {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(124, 227, 139, 0.5);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  text-align: center;
  flex-shrink: 0;
}

.iot-ce-seal__mark {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: #7CE38B;
}

.iot-ce-seal__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.iot-security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.iot-sec-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 24px;
}

.iot-sec-card h4 {
  font-size: 17px;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.iot-sec-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

/* Sekcja 7: Smart Service CRM & CAPEX */
.iot-crm-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.iot-crm-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.iot-crm-benefit-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.iot-crm-benefit-card__num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(30, 91, 122, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iot-crm-benefit-card h3 {
  font-size: 18px;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.iot-crm-benefit-card p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.55;
}

.iot-crm-mockup {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.iot-crm-mockup__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.iot-crm-mockup__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.iot-crm-mockup__head h4 {
  font-size: 19px;
  color: var(--color-accent);
}

.iot-crm-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(30, 91, 122, 0.12);
  color: var(--color-primary);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.iot-crm-mockup__desc {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.iot-capex-table-wrap {
  overflow-x: auto;
}

.iot-capex-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.iot-capex-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 10px 12px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.iot-capex-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.iot-capex-table td strong {
  display: block;
  color: var(--color-accent);
}

.iot-capex-table td small {
  font-size: 12px;
  color: var(--color-text-muted);
}

.iot-wear-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-block;
}

.iot-wear-pill--warn {
  background: #FEF3C7;
  color: #B45309;
}

.iot-wear-pill--ok {
  background: #DCFCE7;
  color: #15803D;
}

.iot-wear-pill--info {
  background: #E0F2FE;
  color: #0369A1;
}

.iot-prio-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.iot-prio-tag--med {
  background: rgba(217, 119, 6, 0.14);
  color: #B45309;
}

.iot-prio-tag--low {
  background: var(--color-surface);
  color: var(--color-accent);
}

.iot-crm-mockup__foot {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
}

@media (max-width: 1080px) {
  .iot-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .ag-disp-workspace,
  .iot-portal-showcase,
  .iot-security-grid,
  .iot-crm-layout {
    grid-template-columns: 1fr;
  }
  .ag-lu-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ag-portal-metrics-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .ag-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Tablet 941px header & console overflow protection */
  .site-header__inner {
    gap: 12px;
  }
  .site-header__logo img {
    max-height: 38px;
    width: auto;
  }
  .ag-disp-app,
  .iot-browser-mockup,
  .iot-crm-mockup {
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    padding-left: 14px;
    padding-right: 14px;
    gap: 8px;
  }
  .site-header__logo {
    flex-shrink: 1;
    min-width: 0;
  }
  .site-header__logo img {
    max-width: 155px;
    height: auto;
  }
  .iot-kpi-strip,
  .iot-metrics-grid,
  .ag-drive-stats,
  .iot-portal-kpis,
  .ag-compact-grid {
    grid-template-columns: 1fr;
  }
  .ag-lu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ag-portal-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .ag-disp-header {
    padding: 12px 14px;
  }
  .ag-disp-workspace {
    padding: 12px;
  }
  .iot-sim-toolbar {
    padding: 10px;
    gap: 8px;
  }
  .iot-sim-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .iot-crm-mockup,
  .iot-browser-mockup {
    max-width: 100%;
    overflow-x: hidden;
  }
  .iot-crm-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .iot-security-banner {
    padding: 28px 20px;
  }
  .iot-security-banner__header {
    flex-direction: column;
  }
}

/* ==========================================================================
   1:1 LIVE SHAFT & MOBILE ANIMATED SHAFT ENHANCEMENTS (ShaftGridView & AnimatedShaftView)
   ========================================================================== */

#iot-telemetry-console [hidden],
.iot-portal-showcase [hidden] {
  display: none !important;
}

.ag-fl-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 12;
}

.ag-fl-cel {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #fbbf24;
  letter-spacing: 0.04em;
}

/* Turkusowa pulsująca dioda dyspozycji z kabiny (1:1 z ShaftGridView.tsx) */
.ag-car-call-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.95);
  animation: agPulse 1s infinite ease-in-out;
  flex-shrink: 0;
}

.ag-car-call-dot--well {
  margin-left: 3px;
}

.ag-car-call-dot--strip {
  width: 6px;
  height: 6px;
}

.ag-shaft-gridlines > span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 5px;
  gap: 3px;
}

.ag-well-call {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.75);
}

.iot-floor-row.has-hall-call {
  border-color: rgba(245, 158, 11, 0.45);
}

.iot-floor-row.has-car-call {
  border-color: rgba(34, 211, 238, 0.45);
}

.ag-cabin-door-anim {
  position: relative;
  z-index: 7;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.65);
  border-radius: 3px;
  padding: 0 3px;
}

/* 4-stanowa animacja drzwi w szybie klasycznym (opening / open / closing / closed) */
.ag-cabin-box__inner.is-opening .ag-cabin-wing {
  width: 22%;
  background: rgba(245, 158, 11, 0.55);
}

.ag-cabin-box__inner.is-open .ag-cabin-wing {
  width: 9%;
  background: rgba(245, 158, 11, 0.42);
}

.ag-cabin-box__inner.is-closing .ag-cabin-wing {
  width: 30%;
  background: rgba(245, 158, 11, 0.55);
}

/* 4-stanowa animacja drzwi w widoku Kabina & Ruchomy Szyb */
.ag-focus-wing {
  transition: width 1.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.ag-focus-wing.is-opening {
  width: 22%;
  opacity: 0.72;
}

.ag-focus-wing.is-open {
  width: 8%;
  opacity: 0.42;
}

.ag-focus-wing.is-closing {
  width: 28%;
  opacity: 0.78;
}

.ag-large-cabin__interior.is-open {
  background: radial-gradient(circle at 50% 25%, rgba(254, 240, 138, 0.14), #020617 75%);
  border-color: rgba(250, 204, 21, 0.35);
}

.ag-cabin-w-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  background: rgba(217, 119, 6, 0.28);
  border: 1px solid #f59e0b;
  color: #fde68a;
  padding: 1px 6px;
  border-radius: 4px;
}

.ag-strip-item {
  gap: 3px;
}

.ag-strip-call {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  color: #fbbf24;
  min-width: 9px;
}

/* ==========================================================================
   WIDOK 1:1 SZYBU W APLIKACJI MOBILNEJ (AnimatedShaftView.tsx)
   ========================================================================== */

.ag-mob-shaft-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ag-mob-shaft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.ag-mob-curtain-pill {
  background: rgba(127, 29, 29, 0.85);
  border: 1px solid #ef4444;
  color: #fecaca;
  font-size: 8.5px;
  padding: 1px 6px;
  border-radius: 4px;
  animation: agPulse 0.85s infinite ease-in-out;
}

.ag-mob-shaft-body {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px;
  align-items: stretch;
}

.ag-mob-well {
  position: relative;
  height: 184px;
  background: #050811;
  border: 1px solid #1e293b;
  border-radius: 9px;
  overflow: hidden;
  padding: 2px 0;
  box-sizing: border-box;
}

.ag-mob-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(30, 41, 59, 0.75);
  pointer-events: none;
}

.ag-mob-rail--l { left: 32px; }
.ag-mob-rail--r { right: 16px; }

.ag-mob-floors {
  position: absolute;
  inset: 2px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.ag-mob-fl {
  height: 18px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 4px;
  gap: 3px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.65);
}

.ag-mob-fl__badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 800;
  min-width: 18px;
  text-align: center;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #1e293b;
  color: #64748b;
  line-height: 1.3;
}

.ag-mob-fl.is-current .ag-mob-fl__badge {
  background: rgba(6, 78, 59, 0.75);
  border-color: #10b981;
  color: #ecfdf5;
}

.ag-mob-fl.is-target .ag-mob-fl__badge {
  background: rgba(120, 53, 15, 0.65);
  border-color: #f59e0b;
  color: #fef3c7;
}

.ag-mob-fl__call {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  color: #22d3ee;
  min-width: 8px;
}

.ag-mob-fl__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 5px #22d3ee;
  margin-left: auto;
}

.ag-mob-cabin {
  position: absolute;
  left: 34px;
  right: 18px;
  height: 18px;
  box-sizing: border-box;
  background: #0f172a;
  border: 1.5px solid #10b981;
  border-radius: 4px;
  z-index: 5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease;
  will-change: bottom;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

.ag-mob-cabin.is-warn {
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
}

.ag-mob-cabin.is-danger {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.ag-mob-cabin__light {
  position: absolute;
  inset: 0;
  background: rgba(254, 240, 138, 0.25);
  opacity: 0.15;
  transition: opacity 0.25s ease;
}

.ag-mob-cabin.is-open .ag-mob-cabin__light {
  opacity: 0.9;
}

.ag-mob-cabin__wing {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 47%;
  background: #334155;
  border: 0.5px solid #64748b;
  transition: transform 0.4s ease;
  z-index: 2;
}

.ag-mob-cabin__wing--l { left: 1px; }
.ag-mob-cabin__wing--r { right: 1px; }

.ag-mob-cabin.is-opening .ag-mob-cabin__wing--l,
.ag-mob-cabin.is-closing .ag-mob-cabin__wing--l {
  transform: translateX(-48%);
}
.ag-mob-cabin.is-opening .ag-mob-cabin__wing--r,
.ag-mob-cabin.is-closing .ag-mob-cabin__wing--r {
  transform: translateX(48%);
}

.ag-mob-cabin.is-open .ag-mob-cabin__wing--l {
  transform: translateX(-82%);
}
.ag-mob-cabin.is-open .ag-mob-cabin__wing--r {
  transform: translateX(82%);
}

.ag-mob-cabin__curtain {
  position: absolute;
  inset: 2px 3px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.ag-mob-cabin__curtain span {
  display: block;
  width: 100%;
  height: 1.2px;
  background: #f43f5e;
  box-shadow: 0 0 4px #ef4444;
}

.ag-mob-cabin__label {
  position: relative;
  z-index: 6;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.78);
  padding: 0 3px;
  border-radius: 2px;
}

.ag-mob-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
}

.ag-mob-side__box {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 7px;
  padding: 5px 7px;
}

.ag-mob-side__box span {
  display: block;
  font-size: 8px;
  font-weight: 700;
  color: #64748b;
}

.ag-mob-side__box strong {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #e2e8f0;
}

.ag-mob-side__pax {
  background: rgba(6, 78, 59, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 9px;
  font-weight: 700;
  color: #6ee7b7;
  text-align: center;
}

.ag-mob-side__tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.ag-mob-side__tools span {
  background: rgba(8, 145, 178, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 5px;
  padding: 3px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: #22d3ee;
}

/* ==========================================================================
   PŁYNNE PRZESUWANIE CAŁEJ STRONY W LEWO / W PRAWO MIĘDZY ZAKŁADKAMI
   ========================================================================== */
.ag-page-slider-stage {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  background: var(--color-bg);
}

.ag-page-slider-pane--old {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity;
  background: var(--color-bg);
}

.ag-page-slider-pane--new {
  position: relative;
  width: 100%;
  z-index: 2;
  background: var(--color-bg);
  box-shadow: -20px 0 48px rgba(6, 30, 46, 0.2), 20px 0 48px rgba(6, 30, 46, 0.2);
  will-change: transform;
}

.ag-page-slider-stage.is-sliding-left .ag-page-slider-pane--old {
  animation: ag-vt-slide-out-left 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ag-page-slider-stage.is-sliding-left .ag-page-slider-pane--new {
  animation: ag-vt-slide-in-right 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ag-page-slider-stage.is-sliding-right .ag-page-slider-pane--old {
  animation: ag-vt-slide-out-right 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ag-page-slider-stage.is-sliding-right .ag-page-slider-pane--new {
  animation: ag-vt-slide-in-left 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

main.ag-main-slide-in-from-right {
  animation: ag-vt-slide-in-right 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

main.ag-main-slide-in-from-left {
  animation: ag-vt-slide-in-left 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ag-vt-slide-out-left {
  0% {
    opacity: 1;
    transform: translate3d(0%, 0, 0);
  }
  100% {
    opacity: 0.92;
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes ag-vt-slide-in-right {
  0% {
    opacity: 1;
    transform: translate3d(100%, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0%, 0, 0);
  }
}

@keyframes ag-vt-slide-out-right {
  0% {
    opacity: 1;
    transform: translate3d(0%, 0, 0);
  }
  100% {
    opacity: 0.92;
    transform: translate3d(100%, 0, 0);
  }
}

@keyframes ag-vt-slide-in-left {
  0% {
    opacity: 1;
    transform: translate3d(-100%, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0%, 0, 0);
  }
}

/* ==========================================================================
   BOCZNY NAWIGATOR SZYBU WINDOWEGO (#iot-elevator-nav) + OPIS INTERFEJSU
   ========================================================================== */

@media (min-width: 1120px) {
  main:has(#iot-elevator-nav:not(.is-minimized)) > .section,
  main:has(#iot-elevator-nav:not(.is-minimized)) > .hero-banner {
    padding-left: 266px;
    padding-right: 32px;
    transition: padding-left 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  main:has(#iot-elevator-nav.is-minimized) > .section,
  main:has(#iot-elevator-nav.is-minimized) > .hero-banner {
    padding-left: 116px;
    padding-right: 32px;
    transition: padding-left 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.iot-elev-nav {
  position: fixed;
  left: 12px;
  top: calc(50% + 28px);
  transform: translateY(-50%);
  width: 214px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.97) 0%, rgba(9, 14, 28, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.6), 0 0 24px rgba(14, 165, 233, 0.14);
  color: #f8fafc;
  z-index: 940;
  padding: 10px 10px 8px;
  user-select: none;
  transition: width 240ms cubic-bezier(0.22, 1, 0.36, 1), transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.iot-elev-nav__head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.8);
  margin-bottom: 8px;
}

.iot-elev-nav__led-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 44px;
  height: 30px;
  padding: 0 6px;
  border-radius: 7px;
  background: #020617;
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: inset 0 0 10px rgba(34, 211, 238, 0.18);
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
}

.iot-elev-nav__led-floor {
  font-size: 14px;
  font-weight: 800;
  color: #22d3ee;
  letter-spacing: 0.02em;
}

.iot-elev-nav__led-dir {
  font-size: 11px;
  font-weight: 800;
  color: #34d399;
}

.iot-elev-nav.is-moving .iot-elev-nav__led-dir {
  color: #fbbf24;
  animation: iot-elev-dir-pulse 420ms infinite alternate;
}

@keyframes iot-elev-dir-pulse {
  from { opacity: 0.45; transform: translateY(-1px); }
  to { opacity: 1; transform: translateY(1px); }
}

.iot-elev-nav__head-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.iot-elev-nav__head-title {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #94a3b8;
  text-transform: uppercase;
}

.iot-elev-nav__head-status {
  font-size: 9px;
  font-weight: 700;
  color: #34d399;
  white-space: nowrap;
}

.iot-elev-nav.is-moving .iot-elev-nav__head-status {
  color: #fbbf24;
}

.iot-elev-nav__min-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 150ms ease, color 150ms ease;
}

.iot-elev-nav__min-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
}

.iot-elev-nav__body {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 7px;
  align-items: stretch;
}

/* Szyb windowy z prowadnicami i jeżdżącą kabiną */
.iot-elev-nav__shaft {
  position: relative;
  width: 38px;
  border-radius: 9px;
  background: linear-gradient(90deg, #020617 0%, #0f172a 50%, #020617 100%);
  border: 1px solid rgba(71, 85, 105, 0.75);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.iot-elev-nav__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    rgba(148, 163, 184, 0.28) 0px,
    rgba(148, 163, 184, 0.28) 6px,
    rgba(30, 41, 59, 0.5) 6px,
    rgba(30, 41, 59, 0.5) 12px
  );
}

.iot-elev-nav__rail--l {
  left: 4px;
}

.iot-elev-nav__rail--r {
  right: 4px;
}

.iot-elev-nav__ticks {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(var(--elev-stops, 10), 1fr);
  pointer-events: none;
}

.iot-elev-nav__ticks span {
  border-bottom: 1px dashed rgba(148, 163, 184, 0.16);
}

.iot-elev-nav__ticks span:last-child {
  border-bottom: none;
}

/* Ruchoma kabina windy w szybie nawigacji */
.iot-elev-nav__cabin {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 0%;
  height: calc(100% / var(--elev-stops, 10));
  border-radius: 5px;
  background: #1e293b;
  border: 1.5px solid #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.iot-elev-nav__cabin.is-doors-open {
  border-color: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.65);
}

/* Wnętrze kabiny (światło widoczne po otwarciu drzwi) */
.iot-elev-nav__cabin-light {
  position: absolute;
  inset: 1px;
  background: radial-gradient(circle at 50% 35%, rgba(254, 243, 199, 0.95) 0%, rgba(56, 189, 248, 0.45) 65%, rgba(15, 23, 42, 0.9) 100%);
  opacity: 0.35;
  transition: opacity 200ms ease;
}

.iot-elev-nav__cabin.is-doors-open .iot-elev-nav__cabin-light {
  opacity: 1;
}

/* Skrzydła drzwi kabiny (lewe i prawe) */
.iot-elev-nav__door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(180deg, #64748b 0%, #334155 50%, #1e293b 100%);
  border-right: 1px solid rgba(15, 23, 42, 0.8);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.iot-elev-nav__door--l {
  left: 0;
}

.iot-elev-nav__door--r {
  right: 0;
  border-right: none;
  border-left: 1px solid rgba(15, 23, 42, 0.8);
}

/* Rozsuwanie drzwi na boki po dojechaniu na piętro */
.iot-elev-nav__cabin.is-doors-open .iot-elev-nav__door--l {
  transform: translateX(-82%);
}

.iot-elev-nav__cabin.is-doors-open .iot-elev-nav__door--r {
  transform: translateX(82%);
}

.iot-elev-nav__cabin-badge {
  position: relative;
  z-index: 4;
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: 9px;
  font-weight: 800;
  color: #020617;
  background: rgba(255, 255, 255, 0.9);
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.iot-elev-nav__cabin:not(.is-doors-open) .iot-elev-nav__cabin-badge {
  background: rgba(2, 6, 23, 0.88);
  color: #38bdf8;
}

/* Kolumna przycisków 10 pięter */
.iot-elev-nav__floors {
  display: grid;
  grid-template-rows: repeat(var(--elev-stops, 10), minmax(38px, 1fr));
  gap: 3px;
}

.iot-elev-nav__floor {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(51, 65, 85, 0.65);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.iot-elev-nav__floor:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.55);
  color: #ffffff;
}

.iot-elev-nav__fl-btn {
  flex: 0 0 24px;
  height: 22px;
  border-radius: 5px;
  background: #020617;
  border: 1px solid rgba(100, 116, 139, 0.6);
  color: #94a3b8;
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms ease;
}

/* Piętro wezwane (podczas jazdy windy) */
.iot-elev-nav__floor.is-called {
  border-color: rgba(251, 191, 36, 0.75);
  background: rgba(245, 158, 11, 0.14);
}

.iot-elev-nav__floor.is-called .iot-elev-nav__fl-btn {
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.45);
}

/* Piętro aktualne (winda na piętrze) */
.iot-elev-nav__floor.is-current {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) 0%, rgba(14, 165, 233, 0.18) 100%);
  border-color: rgba(52, 211, 153, 0.85);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.iot-elev-nav__floor.is-current .iot-elev-nav__fl-btn {
  background: #10b981;
  border-color: #34d399;
  color: #022c22;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
}

.iot-elev-nav__fl-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.iot-elev-nav__fl-text strong {
  font-size: 10.5px;
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iot-elev-nav__fl-text small {
  font-size: 9px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iot-elev-nav__floor.is-current .iot-elev-nav__fl-text small {
  color: #a7f3d0;
}

/* Ruchoma strzałka wskazująca aktualną sekcję po otwarciu drzwi windy */
.iot-elev-nav__arrow {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  border: 1.5px solid #a7f3d0;
  color: #022c22;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.75);
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 10;
}

.iot-elev-nav__floor.is-current.is-doors-open .iot-elev-nav__arrow {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.iot-elev-nav__floor.is-current.is-doors-open .iot-elev-nav__arrow-icon {
  display: inline-block;
  animation: iot-elev-arrow-point 900ms ease-in-out infinite alternate;
}

@keyframes iot-elev-arrow-point {
  0% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(3px);
  }
}

.iot-elev-nav__foot {
  margin-top: 7px;
  text-align: center;
  font-size: 9.5px;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

/* Tryb zwinięty na desktopie (.is-minimized) */
.iot-elev-nav.is-minimized {
  width: 82px;
  padding: 8px 6px;
}

.iot-elev-nav.is-minimized .iot-elev-nav__head-meta,
.iot-elev-nav.is-minimized .iot-elev-nav__fl-text,
.iot-elev-nav.is-minimized .iot-elev-nav__foot {
  display: none;
}

.iot-elev-nav.is-minimized .iot-elev-nav__body {
  grid-template-columns: 32px 1fr;
  gap: 5px;
}

.iot-elev-nav.is-minimized .iot-elev-nav__shaft {
  width: 32px;
}

.iot-elev-nav.is-minimized .iot-elev-nav__floor {
  justify-content: center;
  padding: 4px 2px;
}

/* Delikatne podświetlenie sekcji, do której dojechała winda */
.iot-section-arrived {
  animation: iot-sec-arrival-glow 1100ms ease-out;
}

@keyframes iot-sec-arrival-glow {
  0% {
    box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.55);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

/* Przycisk mobilny (widoczny poniżej 1120px) */
.iot-elev-mobile-fab {
  display: none;
}

@media (max-width: 1119px) {
  main[data-elevator-theme="contact"] .dev-variant-restore-pill {
    left: auto;
    right: 16px;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  .iot-elev-nav {
    left: 12px;
    bottom: 68px;
    top: auto;
    transform: translateY(16px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .iot-elev-nav.is-mobile-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .iot-elev-nav__arrow {
    right: 6px;
    width: 22px;
    height: 18px;
    font-size: 11px;
  }

  .iot-elev-mobile-fab {
    position: fixed;
    left: 12px;
    bottom: 14px;
    z-index: 945;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.65);
    color: #f8fafc;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.55);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .iot-elev-mobile-fab__fl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #10b981;
    color: #022c22;
    font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
    font-size: 11px;
    font-weight: 800;
  }
}

/* Sekcja #iot-opis-interfejsu (Przewodnik po konsoli dyspozytorskiej 1:1) */
.iot-interface-guide {
  margin-top: 28px;
  padding: 26px 28px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.25);
  color: #f8fafc;
}

.iot-interface-guide__head {
  margin-bottom: 20px;
}

.iot-interface-guide__head .eyebrow {
  color: #38bdf8;
  margin-bottom: 6px;
}

.iot-interface-guide__title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}

.iot-interface-guide__sub {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0;
}

.iot-interface-guide__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.iot-interface-guide__card {
  padding: 18px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(71, 85, 105, 0.55);
  transition: border-color 180ms ease, transform 180ms ease;
}

.iot-interface-guide__card:hover {
  border-color: rgba(56, 189, 248, 0.65);
  transform: translateY(-2px);
}

.iot-interface-guide__badge {
  display: inline-block;
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.iot-interface-guide__card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 8px;
}

.iot-interface-guide__card p {
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0;
}

@media (max-width: 1024px) {
  .iot-interface-guide__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .iot-interface-guide {
    padding: 18px 16px;
  }
  .iot-interface-guide__grid {
    grid-template-columns: 1fr;
  }
}


/* Shared elevator navigation: telemetry, contact and Hyundai installations. */
.iot-elev-nav {
  max-height: calc(100vh - 128px);
  max-height: calc(100dvh - 128px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
.iot-elev-nav__body { grid-template-columns: 38px minmax(0, 1fr); }
.iot-elev-nav__floors { min-width: 0; }
.iot-elev-nav__floor { min-width: 0; min-height: 38px; padding-right: 26px; }
.iot-elev-nav__arrow { right: 4px; width: 18px; height: 18px; font-size: 10px; }
.iot-elev-nav.is-minimized .iot-elev-nav__arrow { display: none; }
.iot-elev-nav.is-minimized .iot-elev-nav__body { grid-template-columns: 32px minmax(0, 1fr); }
.iot-elev-nav.is-minimized .iot-elev-nav__head { flex-direction: column; gap: 4px; padding: 4px; }
.iot-elev-nav__floor:focus-visible,
.iot-elev-nav__min-btn:focus-visible,
.iot-elev-mobile-fab:focus-visible,
.mobile-menu-toggle:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}
.iot-elev-nav[data-elevator-theme="contact"] {
  background: linear-gradient(155deg, #123e55, #061e2e);
  border-color: #709aad;
}
.iot-elev-nav[data-elevator-theme="hyundai"] {
  background: linear-gradient(110deg, #f8faf9, #dfe7e3 48%, #f8faf9);
  border-color: #a3b7ad;
  box-shadow: 0 14px 40px rgba(6, 44, 29, .18);
  color: #12392a;
}
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__head {
  background: #fff;
  border-color: #c4d2ca;
}
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__head-title,
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__foot,
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__fl-text small { color: #426353; }
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__head-status { color: #087646; }
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__led-box {
  background: #08291c;
  border-color: #398d60;
}
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__led-floor { color: #9ee5b2; }
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__min-btn {
  background: #eef4f0;
  border-color: #b5c9bd;
  color: #174f35;
}
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__shaft {
  background: linear-gradient(90deg, #728b7d, #e3ebe6 45%, #9aad9f);
  border-color: #8da696;
  box-shadow: inset 0 0 10px rgba(6, 44, 29, .22);
}
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__door {
  background: linear-gradient(100deg, #8c9c94, #e3e9e5 45%, #a9b8ae);
}
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__cabin {
  background: #d8e2da;
  border-color: #168050;
  box-shadow: 0 0 9px rgba(22, 128, 80, .3);
}
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__floor {
  background: rgba(255,255,255,.7);
  border-color: #c1d0c6;
  color: #214d36;
}
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__floor:hover,
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__floor.is-called { background: #e0efe6; border-color: #31835a; }
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__floor.is-current {
  background: #d8eddf;
  border-color: #168050;
  color: #123c25;
  box-shadow: none;
}
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__fl-btn {
  background: #e8efea;
  color: #356249;
  border-color: #b1c6b8;
}
.iot-elev-nav[data-elevator-theme="hyundai"] .iot-elev-nav__floor.is-current .iot-elev-nav__fl-btn {
  background: #168050;
  border-color: #168050;
  color: white;
  box-shadow: none;
}
.iot-elev-mobile-fab[data-elevator-theme="hyundai"] {
  background: #f3f7f4;
  border-color: #168050;
  color: #174f35;
}
.iot-elev-mobile-fab[data-elevator-theme="contact"] { background: #123e55; }

/* Serwis: starszy dźwig linowy, wciągarka i przeciwwaga. */
.iot-elev-nav[data-elevator-theme="service"] {
  --legacy-shaft-width: 76px;
  --legacy-car-left: 8px;
  --legacy-car-width: 34px;
  --legacy-counter-left: 53px;
  --legacy-counter-width: 14px;
  --legacy-car-rope-x: 24px;
  --legacy-counter-rope-x: 59px;
  width: 266px;
  border-radius: 10px;
  border-color: transparent;
  background: transparent;
  color: #e6eef2;
  box-shadow: none;
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__head {
  border-radius: 5px;
  border-color: rgba(148, 180, 199, .38);
  background: rgba(10, 30, 44, .8);
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__head-title,
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__foot,
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__fl-text small { color: #d7e5ed; }
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__head-status { color: #bad4bf; }
.iot-elev-nav[data-elevator-theme="service"].is-moving .iot-elev-nav__head-status { color: #efc783; }
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__led-box {
  border-radius: 3px;
  border-color: #667a80;
  background: #0c1b24;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, .5);
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__led-floor,
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__led-dir { color: #f2c16e; }
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__min-btn {
  border-radius: 4px;
  background: rgba(40, 71, 85, .56);
  border-color: #577883;
  color: #d6e4e9;
}
.legacy-machine {
  position: relative;
  margin-bottom: 6px;
  padding: 4px 0 0;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  background: transparent;
}
.legacy-machine__label {
  display: block;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 8px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
  color: #d7e5ed;
  background: rgba(12, 34, 48, .72);
}
.legacy-machine__drive { position: relative; height: 53px; }
.legacy-machine__motor {
  position: absolute;
  left: 88px;
  top: 14px;
  width: 100px;
  height: 29px;
  border: 2px solid #3b525b;
  border-radius: 5px 12px 12px 5px;
  background: repeating-linear-gradient(90deg, #61777a 0 3px, #3b545c 3px 5px);
  box-shadow: inset 0 3px 0 rgba(199, 217, 219, .22), 0 3px 0 #304e5a;
}
.legacy-machine__motor::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 30px;
  width: 24px;
  height: 8px;
  border: 1px solid #3b525b;
  background: #70858a;
}
.legacy-machine__axle {
  position: absolute;
  left: 43px;
  top: 25px;
  width: 50px;
  height: 7px;
  border: 1px solid #49616c;
  background: linear-gradient(#b6c4c8, #536d78);
}
.legacy-machine__wheel {
  position: absolute;
  left: 23px;
  top: 8.5px;
  width: 40px;
  height: 40px;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 2px 1px rgba(7, 20, 28, .3));
}
.legacy-reeving {
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 66px;
  overflow: visible;
  pointer-events: none;
  z-index: 4;
}
.legacy-reeving--compact { display: none; width: 54px; height: 54px; }
.legacy-reeving__groove { stroke: #3d5560; stroke-width: 3px; }
.legacy-reeving__rope {
  stroke: #c9d5d9;
  stroke-width: 1.75px;
  stroke-dasharray: 2.8 1.5;
  stroke-dashoffset: var(--legacy-rope-shift, 0px);
}
.legacy-machine__beam {
  display: block;
  height: 5px;
  border-top: 1px solid #9bb0b6;
  border-bottom: 1px solid #375461;
  background: #617d86;
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__body {
  grid-template-columns: var(--legacy-shaft-width) minmax(0, 1fr);
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__shaft {
  width: var(--legacy-shaft-width);
  border-radius: 3px;
  border-color: rgba(76, 104, 117, .4);
  background: transparent;
  box-shadow: none;
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__rail {
  width: 2px;
  background: linear-gradient(90deg, #a1b4bd, #344f5b);
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__rail--l { left: 4px; }
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__rail--r { right: 4px; }
.legacy-rope {
  position: absolute;
  top: 0;
  width: 3px;
  z-index: 1;
  background: repeating-linear-gradient(155deg, #b8c6c9 0 2px, #3d5560 2px 4px);
}
.legacy-rope--cabin {
  left: var(--legacy-car-rope-x);
  height: calc(var(--legacy-car-top, 0%) + 1px);
  background-position-y: var(--legacy-rope-shift, 0px);
}
.legacy-rope--counterweight {
  left: var(--legacy-counter-rope-x);
  height: calc(var(--legacy-counter-top, 87.5%) + 1px);
  background-position-y: calc(0px - var(--legacy-rope-shift, 0px));
}
.legacy-counterweight {
  position: absolute;
  left: var(--legacy-counter-left);
  width: var(--legacy-counter-width);
  height: calc(100% / var(--elev-stops, 8));
  padding: 3px 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 2px solid #263f4c;
  border-radius: 2px;
  background: #627a85;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, .35);
  z-index: 2;
}
.legacy-counterweight span {
  flex: 1;
  min-height: 0;
  background: linear-gradient(#9aaeb6, #718a94);
  border-bottom: 1px solid #3f5a67;
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__cabin {
  left: var(--legacy-car-left);
  right: auto;
  width: var(--legacy-car-width);
  border-radius: 3px;
  border: 2px solid #203d4b;
  background: #526d79;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, .4);
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__cabin.is-doors-open { border-color: #b39965; }
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__cabin-light {
  background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(38, 52, 56, .28) 6px 7px), linear-gradient(#e5c980, #b39a5f);
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__door {
  background: repeating-linear-gradient(90deg, #7c949e 0 3px, #536d78 3px 5px);
  border-color: #2d4856;
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__cabin-badge { background: #dce6e8; color: #243d49; }
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__floor {
  border-radius: 4px;
  border-color: rgba(127, 158, 176, .38);
  background: rgba(19, 47, 63, .76);
  color: #dce9ee;
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__floor:hover,
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__floor.is-called {
  background: rgba(31, 70, 91, .92);
  border-color: #7399aa;
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__floor.is-current {
  background: rgba(24, 65, 85, .86);
  border-color: #8eb1bf;
  box-shadow: inset 2px 0 0 #8eb1bf;
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__fl-btn {
  border-radius: 50%;
  background: linear-gradient(#354954, #172e3c);
  border-color: #64808d;
  color: #d9e7ed;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__floor.is-current .iot-elev-nav__fl-btn,
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__floor.is-called .iot-elev-nav__fl-btn {
  border-color: #c9a562;
  background: #e5bf78;
  color: #3c321c;
  box-shadow: 0 0 5px rgba(219, 173, 88, .25);
}
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__arrow {
  background: #527c90;
  border-color: #84aabb;
  color: #edf5f8;
  box-shadow: none;
}
.legacy-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 7px;
  font-size: 9px;
  color: #d7e5ed;
}
.legacy-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(10, 32, 46, .72);
}
.legacy-legend i { width: 9px; height: 9px; border: 1px solid #577787; background: #b39a5f; }
.legacy-legend > span + span i { width: 5px; background: repeating-linear-gradient(#8ca2ad 0 2px, #375461 2px 3px); }
.iot-elev-nav[data-elevator-theme="service"] .iot-elev-nav__foot {
  width: fit-content;
  margin: 7px auto 0;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(10, 32, 46, .72);
}
.iot-elev-mobile-fab[data-elevator-theme="service"] {
  background: rgba(23, 58, 79, .86);
  border-color: #5e869a;
  color: #edf4f7;
  box-shadow: 0 6px 18px rgba(15, 42, 58, .18);
}
.iot-elev-mobile-fab[data-elevator-theme="service"] .iot-elev-mobile-fab__fl { background: #102633; color: #f0c77e; }
.iot-elev-nav[data-elevator-theme="service"].is-minimized {
  --legacy-shaft-width: 54px;
  --legacy-car-left: 5px;
  --legacy-car-width: 24px;
  --legacy-counter-left: 37px;
  --legacy-counter-width: 10px;
  --legacy-car-rope-x: 16px;
  --legacy-counter-rope-x: 41px;
  width: 106px;
}
.iot-elev-nav[data-elevator-theme="service"].is-minimized .legacy-machine__label,
.iot-elev-nav[data-elevator-theme="service"].is-minimized .legacy-machine__motor,
.iot-elev-nav[data-elevator-theme="service"].is-minimized .legacy-machine__axle,
.iot-elev-nav[data-elevator-theme="service"].is-minimized .legacy-reeving--full,
.iot-elev-nav[data-elevator-theme="service"].is-minimized .legacy-legend { display: none; }
.iot-elev-nav[data-elevator-theme="service"].is-minimized .legacy-reeving--compact { display: block; }
.iot-elev-nav[data-elevator-theme="service"].is-minimized .legacy-machine__drive { height: 41px; }
.iot-elev-nav[data-elevator-theme="service"].is-minimized .legacy-machine__wheel { left: 15.714px; top: 2px; width: 28.572px; height: 28.572px; }

@media (min-width: 1120px) {
  main[data-elevator-theme="service"]:has(#iot-elevator-nav:not(.is-minimized)) > .section,
  main[data-elevator-theme="service"]:has(#iot-elevator-nav:not(.is-minimized)) > .hero-banner { padding-left: 306px; }
  main[data-elevator-theme="service"]:has(#iot-elevator-nav.is-minimized) > .section,
  main[data-elevator-theme="service"]:has(#iot-elevator-nav.is-minimized) > .hero-banner { padding-left: 140px; }
}

@media (max-width: 1119px) {
  .iot-elev-nav {
    width: min(300px, calc(100vw - 32px));
    left: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 168px);
    max-height: calc(100dvh - 168px);
    visibility: hidden;
  }
  .iot-elev-nav.is-mobile-open { visibility: visible; }
  .iot-elev-nav[data-elevator-theme="service"] { width: min(300px, calc(100vw - 32px)); }
  .iot-elev-nav__floors { grid-template-rows: repeat(var(--elev-stops, 10), minmax(44px, 1fr)); }
  .iot-elev-nav__floor { min-height: 44px; padding: 7px 28px 7px 8px; }
  .iot-elev-nav__fl-text strong { font-size: 12px; }
  .iot-elev-nav__fl-text small { font-size: 10px; }
  .iot-elev-nav__head-title { font-size: 10px; }
  .iot-elev-nav__head-status { font-size: 10px; }
  .iot-elev-nav__min-btn { width: 44px; height: 44px; flex-shrink: 0; font-size: 22px; }
  .iot-elev-mobile-fab {
    min-height: 40px;
    left: auto;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 6px 12px 6px 8px;
    opacity: 0.94;
  }
}

@media (max-width: 960px) {
  /* Tablet portrait (768px) & mobile: use collapsible menu so nav links never wrap onto 2 lines */
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(64px, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
  }
  .site-header__logo { min-width: 0; }
  .site-header__logo img { width: 104px; max-width: 100%; height: auto; }
  .mobile-menu-toggle {
    display: inline-flex;
    min-width: 72px;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 13px;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    touch-action: manipulation;
  }
  .site-header__actions {
    min-width: 0;
    flex-shrink: 0;
  }
  .site-header__actions .site-header__phone {
    display: none;
  }
  .btn-login-hub {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 12.5px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .site-nav {
    display: none;
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding: 8px 0 0;
    background: var(--color-white);
    border: 0;
    box-shadow: none;
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .site-nav__link {
    display: block;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 15px;
  }
  .site-nav__link::after { bottom: 5px; }
}

@media (max-width: 767px) {
  .site-header__inner {
    gap: 8px;
    padding: 10px 14px;
  }
  .site-header__logo img { width: 82px; }
  .mobile-menu-toggle {
    min-width: 64px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .btn-login-hub {
    padding: 8px 11px;
    font-size: 11.5px;
    gap: 5px;
  }
  .contact-layout--v2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .iot-dict-btn {
    padding: 8px 11px;
    font-size: 11px;
  }
  .hero-banner { min-height: auto; padding: 56px 0; }
  .hero-banner__title { font-size: clamp(32px, 8.5vw, 36px); line-height: 1.08; }
  main .section-title { font-size: clamp(26px, 7vw, 30px) !important; line-height: 1.2; }
  .hero-banner__desc,
  .section-lead { font-size: 16px; line-height: 1.65; }
  .eyebrow { font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
  #asensor-cf7 input,
  #asensor-cf7 select,
  #asensor-cf7 textarea,
  .form-control { font-size: 16px; }
  main[data-elevator-theme] { padding-bottom: 80px; }
  .contact-person-card a { overflow-wrap: anywhere; }
  .login-modal { max-height: calc(100dvh - 32px); overflow-y: auto; }
}

@media (max-width: 359px) {
  .site-header__inner {
    padding: 10px 10px;
    gap: 6px;
  }
  .site-header__logo img { width: 70px; }
  .mobile-menu-toggle {
    min-width: 56px;
    padding: 8px 7px;
    font-size: 11px;
  }
  .btn-login-hub {
    padding: 8px 8px;
    font-size: 10.5px;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .iot-elev-nav *,
  .iot-section-arrived { animation: none !important; transition: none !important; }
}


/* ==========================================================================
   Aktualizacja 2026-11-29 (Synchronizacja z paczką Kierunek Marki v2 + Antybot)
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.intro-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.intro-quick-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(0, 85, 229, 0.04);
}

/* O firmie — karty założycieli, zdjęcia, wartości i opinie */
.founder-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.founder-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(0, 85, 229, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.founder-card__contact {
  margin-top: auto;
  padding-top: 12px;
}

.founder-card__link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.founder-card__link:hover {
  text-decoration: underline;
}

.about-story-grid {
  align-items: center;
}

.about-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-photo-pair__img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 22px 0;
}

.about-pillar {
  padding: 18px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.about-pillar h3 {
  font-size: 18px;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.about-pillar p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.about-closing-quote {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.65;
  padding-left: 16px;
  border-left: 3px solid var(--color-primary);
}

/* Karuzela opinii klientów */
.testimonials-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.testimonials-controls {
  display: flex;
  gap: 10px;
}

.testimonials-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-accent);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.testimonials-arrow:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.testimonials-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, calc((100% - 40px) / 3));
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.testimonial-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimonial-card__quote {
  font-size: 40px;
  line-height: 1;
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-weight: 800;
}

.testimonial-card p {
  font-size: 15px;
  line-height: 1.68;
  color: var(--color-text);
  margin: 0;
}

/* Tabela innych modeli Hyundai Elevator */
.models-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.models-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.models-table thead {
  background: var(--color-surface);
}

.models-table th {
  padding: 16px 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.models-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  font-size: 15px;
  color: var(--color-text);
}

.models-table tbody tr:last-child td {
  border-bottom: none;
}

.model-params {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.model-params strong {
  color: var(--color-accent);
}

/* Karty 6 realizacji Hyundai */
.realization-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.realization-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-green);
}

.realization-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface);
}

.realization-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.realization-card:hover .realization-card__media img {
  transform: scale(1.04);
}

.realization-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.realization-card__cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-green);
}

/* Podstrony szczegółowe realizacji */
.realization-detail-hero {
  padding-bottom: 48px;
}

.realization-back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.realization-back-link:hover {
  text-decoration: underline;
}

.realization-specs-grid {
  margin-top: 32px;
}

.realization-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 44px;
}

.realization-gallery img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

.realization-story {
  max-width: 800px;
}

.realization-story p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 16px;
}

.realization-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.realization-credit {
  margin-top: 24px;
  font-size: 12.5px !important;
  color: var(--color-text-muted) !important;
}

/* Kontakt — pojedynczy czysty wariant */
.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Uproszczona stopka (3 kolumny: Brand, MENU, KONTAKT) */
.site-footer__grid--compact {
  grid-template-columns: 1.5fr 1fr 1.2fr;
}

.site-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Ochrona przed botami w formularzach (#asensor-cf7) */
.ag-hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ag-antibot-box {
  margin: 16px 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.ag-antibot-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ag-antibot-box__shield {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.ag-antibot-box__refresh {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
}

.ag-antibot-box__refresh:hover {
  text-decoration: underline;
}

.ag-antibot-box__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ag-antibot-box__question {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.ag-antibot-box__input {
  max-width: 130px !important;
  padding: 10px 12px !important;
  font-weight: 700;
  text-align: center;
}

.form-status.is-error {
  background: #FDECEC !important;
  color: #B42318 !important;
  border-color: #FECDCA !important;
}

@media (max-width: 900px) {
  .site-footer__grid--compact {
    grid-template-columns: 1fr;
  }
  .testimonials-track {
    grid-auto-columns: minmax(260px, 85%);
  }
  .realization-gallery {
    grid-template-columns: 1fr;
  }
  .realization-gallery img {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .about-photo-pair {
    grid-template-columns: 1fr;
  }
  .about-photo-pair__img {
    height: 260px;
  }
  .models-table thead {
    display: none;
  }
  .models-table tr {
    display: block;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
  }
  .models-table td {
    display: block;
    border-bottom: none;
    padding: 6px 16px;
  }
  .models-table td::before {
    content: attr(data-label) ': ';
    font-weight: 700;
    color: var(--color-text-muted);
    font-size: 12px;
    text-transform: uppercase;
  }
}


/* ==========================================================================
   1:1 Visual Fidelity Polish — WP v2 Typography, Colors & Layouts (2026-11-29)
   ========================================================================== */

/* Global brand heading consistency */
.tile__title {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-primary);
}

.tile--blue .tile__title,
.tile--green .tile__title {
  color: #FFFFFF;
}

.tile--blue .tile__title--green {
  color: var(--color-green-light);
}

.tile__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  padding: 6px 0;
}

.tile__link:hover {
  color: var(--color-primary);
  transform: translateX(3px);
}

/* Signature brand gradient footer — compact 1:1 WP v2 proportions + 2x2 pill contact grid */
.site-footer {
  background: linear-gradient(135deg, #1E5B7A 0%, #0E344B 52%, #061E2E 100%) !important;
  padding: 36px 0 18px !important;
}

.site-footer__grid--compact {
  padding-bottom: 24px !important;
  gap: 28px !important;
}

.site-footer__brand img {
  width: 82px !important;
  margin-bottom: 10px !important;
}

.site-footer__brand p {
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin-bottom: 6px !important;
  max-width: 260px;
}

.site-footer__col h6 {
  font-size: 11px !important;
  margin-bottom: 10px !important;
}

.site-footer__col li {
  margin-bottom: 5px !important;
}

.site-footer__col a {
  font-size: 13.5px !important;
}

.site-footer__contact-pills {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 10px;
  align-items: center;
}

.site-footer__contact-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-mono);
  font-size: 12px !important;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-footer__contact-pills a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.site-footer__bottom {
  padding-top: 16px !important;
  font-size: 12px !important;
}

/* Intro Split-Screen 1:1 vertical centering & left logo stack */
.intro-split--v2 .intro-pane {
  justify-content: center;
  position: relative;
}

.intro-split--v2 .intro-top-stack {
  position: absolute;
  top: 28px;
  left: 36px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.intro-split--v2 .intro-top-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.intro-split--v2 .intro-heading {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
}

.intro-split--v2 .intro-pane--left .intro-heading {
  color: #FFFFFF;
}

.intro-split--v2 .intro-partner-logo--right {
  display: block;
  margin-left: auto;
  margin-bottom: 56px;
  width: 230px;
}

/* Soft edge fade images (1:1 WP v2 style on O firmie & Realizacje) */
.fade-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.fade-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fade-img-wrap--left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--fade-bg, var(--color-bg)) 0%, rgba(250, 250, 250, 0) 28%);
  pointer-events: none;
}

.fade-img-wrap--right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, var(--fade-bg, var(--color-bg)) 0%, rgba(250, 250, 250, 0) 28%);
  pointer-events: none;
}

/* O firmie 1:1 components */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.founder-card-h {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.founder-card-h__photo {
  background: #EAEAEF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.founder-card-h__photo.has-photo {
  padding: 0;
  overflow: hidden;
  min-height: 185px;
  background: #E2E7F1;
}

.founder-card-h__photo.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.founder-card-h__body {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.founder-card-h__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.founder-card-h__body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0;
}

.founder-card-h__body p {
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--color-text);
  margin: 0;
}

.founder-card-h__body a {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-accent);
}

.founder-card-h__body a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* 4-step circular Hyundai lifecycle stepper (O firmie) */
.lifecycle-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
  margin-top: 24px;
}

.lifecycle-stepper::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, #174A65 0%, #174A65 65%, #3FAE49 100%);
  z-index: 0;
}

.lifecycle-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.lifecycle-step__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #174A65;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(6, 30, 46, 0.16);
}

.lifecycle-step__circle--green {
  background: #3FAE49;
}

.lifecycle-step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
}

.lifecycle-step__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}

/* Service mini-icon in O firmie 6-card grid */
.service-card-icon {
  width: 28px;
  height: 28px;
  color: var(--color-green-light);
  margin-bottom: 14px;
}

.about-why-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0 22px;
}

.about-why-list p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0;
}

.about-why-list strong {
  color: var(--color-accent);
}

/* Serwis — light emergency strip (1:1 WP v2) */
.emergency-strip-light {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 28px;
  background: #FFFFFF;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-top: 40px;
}

.emergency-strip-light__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.emergency-strip-light__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3FAE49;
  box-shadow: 0 0 0 4px rgba(63, 174, 73, 0.2);
}

.emergency-strip-light__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.emergency-strip-light__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent);
}

.emergency-strip-light__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.emergency-strip-light__pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
}

.emergency-strip-light__pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #fff;
}

/* Serwis — brands horizontal ribbon & Dlaczego my 2-col */
.brands-marquee-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  padding: 24px 0;
}

.brands-marquee-item {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  opacity: 0.85;
}

.why-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--color-text);
}

.why-bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-size: 20px;
  line-height: 1.25;
}

.why-bullet-list strong {
  color: var(--color-accent);
}

.why-photo-tint {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.why-photo-tint img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.why-photo-tint::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(30, 91, 122, 0.52) 0%, rgba(6, 30, 46, 0.72) 100%);
  pointer-events: none;
}

/* Nowe instalacje — Light Hero (1:1 WP v2 exact proportions & spacing) */
.hero-banner--light-hyundai {
  position: relative;
  background-size: cover;
  background-position: center 42%;
  min-height: 620px;
  padding: 56px 0 84px;
  display: flex;
  align-items: flex-end;
}

.hero-banner--light-hyundai::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(244, 246, 249, 0.84) 0%, rgba(244, 246, 249, 0.68) 54%, rgba(244, 246, 249, 0.42) 100%);
  z-index: 1;
}

.hero-hyundai-container {
  position: relative;
  z-index: 2;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-hyundai-logo-wrap {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
  padding-right: 48px;
}

.hero-hyundai-logo-wrap img {
  width: 245px;
}

.hero-hyundai-inner {
  max-width: 820px;
  padding-top: 92px;
}

.hero-hyundai-eyebrow {
  color: #3A4652;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.hero-banner--light-hyundai .hero-banner__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.8vw, 66px);
  font-weight: 800;
  color: #174A65;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-banner--light-hyundai .hero-banner__desc {
  color: #3A3A42;
  font-size: 15.5px;
  line-height: 1.62;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-hyundai-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn--pill-compact {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
}

.btn--outline-hyundai {
  background: rgba(255, 255, 255, 0.55);
  color: #174A65;
  border: 1.5px solid #174A65;
}

.btn--outline-hyundai:hover {
  background: #FFFFFF;
  color: #061E2E;
  border-color: #061E2E;
}

/* Nowe instalacje — Od 1984 floating cards over green band */
.hyundai-1984-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hyundai-watermark-logo {
  width: min(440px, 100%);
  opacity: 0.34;
}

.hyundai-stats-stage {
  position: relative;
  padding: 0 28px 40px;
}

.hyundai-stats-stage::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 42px;
  bottom: 0;
  border-radius: var(--radius-md);
  background-color: #1a4734;
  background-image: var(--gradient-hero-green),
    url('../../assets/2026/08/section_1_bg2.jpg');
  background-position: 0 0, center center;
  background-size: 100% 100%, cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.hyundai-stats-stage .grid-4 {
  position: relative;
  z-index: 1;
}

.hyundai-stat-card {
  background: var(--gradient-light-tile);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: 0 10px 26px rgba(6, 30, 46, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
}

.hyundai-stat-card__top {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.hyundai-stat-card__num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
  line-height: 1.05;
  margin-bottom: 6px;
}

.hyundai-stat-card__bottom {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
}

/* Nowe instalacje — Dlaczego Hyundai showcase slider (płynne przejście kierunkowe + parallax) */
.hyundai-slider {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.hyundai-slider__viewport {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: 20px 10px 28px;
  margin: -20px -10px -28px;
}

.hyundai-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(300px, 370px) 1fr;
  align-items: center;
  min-height: 440px;
  position: relative;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(36px, 0, 0);
  transition:
    opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.58s;
  will-change: opacity, transform;
}

.hyundai-slide.is-leaving-left {
  transform: translate3d(-36px, 0, 0);
}

.hyundai-slide.is-leaving-right {
  transform: translate3d(36px, 0, 0);
}

.hyundai-slide.is-entering-from-left {
  transform: translate3d(-36px, 0, 0);
  transition: none;
}

.hyundai-slide.is-entering-from-right {
  transform: translate3d(36px, 0, 0);
  transition: none;
}

.hyundai-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  z-index: 2;
  transition:
    opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.hyundai-slide__card {
  grid-column: 1 / 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  background: var(--gradient-light-tile);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 12px 32px rgba(6, 30, 46, 0.2);
  margin: 28px 0;
  opacity: 0;
  transform: translate3d(18px, 6px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.hyundai-slide.is-active .hyundai-slide__card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hyundai-slide__card h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 14px;
}

.hyundai-slide__card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0;
}

.hyundai-slide__media {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  margin-left: 24px;
  border-radius: 6px;
  overflow: hidden;
  height: 440px;
  box-shadow: var(--shadow-card);
}

.hyundai-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.045);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.hyundai-slide.is-active .hyundai-slide__media img {
  transform: scale(1);
}

.hyundai-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(6, 30, 46, 0.08);
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-green);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 16px rgba(6, 30, 46, 0.12);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hyundai-slider__arrow:hover {
  background: var(--color-green);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 8px 20px rgba(46, 143, 55, 0.28);
}

.hyundai-slider__arrow--prev { left: -56px; }
.hyundai-slider__arrow--next { right: -56px; }

.hyundai-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.hyundai-slider__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(63, 174, 73, 0.28);
  cursor: pointer;
  padding: 0;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.32s ease;
}

.hyundai-slider__dot::after {
  content: '';
  position: absolute;
  inset: -14px -8px;
}

.hyundai-slider__dot.is-active {
  width: 26px;
  background: var(--color-green);
}

/* Nowe instalacje — Clean light N:EX showcase (1:1 WP v2) */
.nex-showcase {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 44px;
}

.nex-showcase__photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.nex-showcase__photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.nex-showcase__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.nex-spec-item__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.nex-spec-item__val {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.nex-spec-item__sub {
  font-size: 13px;
  color: var(--color-text-muted);
}

.nex-benefits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 52px;
}

.nex-benefits-row h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-green);
  margin-bottom: 8px;
}

.nex-benefits-row p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

/* Nowe instalacje — 3-column N:EX-1 Configurator (1:1 WP v2) */
.configurator-v2 {
  display: grid;
  grid-template-columns: 0.3fr 0.22fr 0.48fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 64px;
}

.configurator-v2__tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.configurator-v2__tabs .tab-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text);
  transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.configurator-v2__tabs .tab-btn:hover {
  background: var(--color-surface);
}

.configurator-v2__tabs .tab-btn.is-active {
  background: #E5E7EC;
  color: var(--color-accent);
  font-weight: 700;
  border-color: var(--color-border);
}

.configurator-v2__tabs .tab-btn.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  width: 100%;
  background: var(--color-green);
  transform-origin: left center;
  transform: scaleX(0);
  animation: cfgTabProgress 4.2s linear forwards;
}

.configurator-v2.is-paused .configurator-v2__tabs .tab-btn.is-active::after {
  animation-play-state: paused;
}

.configurator-v2.is-manual-hold .configurator-v2__tabs .tab-btn.is-active::after {
  animation: none;
  transform: scaleX(1);
}

@keyframes cfgTabProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.configurator-v2__preview {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.configurator-v2__stage {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.configurator-v2__stage .tab-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 10px, 0) scale(0.985);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.55s;
  will-change: opacity, transform;
}

.configurator-v2__stage .tab-panel.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.configurator-v2__preview .tab-panel img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  margin: 0 auto;
  box-shadow: none;
}

.btn--green {
  background: var(--color-green-light);
  color: #FFFFFF;
  border-color: var(--color-green-light);
}

.btn--green:hover {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #FFFFFF;
}

/* Nowe instalacje — 5-column Dlaczego Asensor strip */
.asensor-5-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.asensor-5-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.asensor-5-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-green);
  margin-top: 2px;
}

.asensor-5-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.asensor-5-item p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}

/* Nowe instalacje — 6 Full-Bleed Gradient Realization Cards (1:1 WP v2) */
.realization-card--overlay {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: #FFFFFF;
  background-size: cover;
  background-position: center;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.realization-card--overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.25s ease;
}

.realization-card--overlay.is-teal::before {
  background: linear-gradient(180deg, rgba(23, 74, 101, 0.58) 0%, rgba(6, 30, 46, 0.88) 100%);
}

.realization-card--overlay.is-green::before {
  background: linear-gradient(180deg, rgba(46, 143, 55, 0.58) 0%, rgba(16, 62, 22, 0.88) 100%);
}

.realization-card--overlay:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.realization-card--overlay__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.realization-card--overlay h3 {
  font-size: 22px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 4px;
  line-height: 1.2;
}

.realization-card--overlay p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}

.realization-card--overlay__arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease;
}

.realization-card--overlay:hover .realization-card--overlay__arrow {
  transform: translateX(3px);
}

/* Kontakt 1:1 WP v2 layout */
.contact-band-v2 {
  background: var(--color-surface);
  padding: 48px 0 64px;
}

.contact-card-v2 {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: 0 2px 12px rgba(6, 30, 46, 0.04);
}

.contact-card-v2 a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-card-v2 h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-green);
  margin-bottom: 12px;
}

.contact-card-v2 ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-card-v2 a {
  font-size: 15px;
  color: var(--color-primary);
  font-weight: 500;
}

.contact-card-v2 a:hover {
  text-decoration: underline;
}

/* 6 Realizacje Editorial 2-Row Zigzag Layout (1:1 WP v2) */
.realization-editorial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.realization-spec-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 28px;
  background: #FFFFFF;
}

.realization-spec-cell {
  padding: 18px 20px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.realization-spec-cell:nth-child(2n) {
  border-right: none;
}

.realization-spec-cell:nth-last-child(-n+2) {
  border-bottom: none;
}

.realization-spec-cell__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.realization-spec-cell__val {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
}

.realization-editorial-cta {
  text-align: center;
  padding: 20px 0 12px;
}

.realization-editorial-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

@media (max-width: 1080px) {
  .hyundai-slider__arrow--prev { left: 10px; }
  .hyundai-slider__arrow--next { right: 10px; }
  .configurator-v2 { grid-template-columns: 1fr; }
  .configurator-v2__tabs { flex-direction: row; flex-wrap: wrap; }
  .configurator-v2__tabs .tab-btn { width: auto; }
  .asensor-5-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-hero-grid,
  .hero-hyundai-grid,
  .nex-showcase,
  .realization-editorial-row {
    grid-template-columns: 1fr;
  }
  .hyundai-slide,
  .hyundai-slide.is-active {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hyundai-slide__card {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 -24px;
  }
  .hyundai-slide__media {
    grid-column: 1;
    grid-row: 2;
    margin-left: 0;
    height: 240px;
  }
  .nex-benefits-row {
    grid-template-columns: 1fr;
  }
  .lifecycle-stepper {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .lifecycle-stepper::before {
    display: none;
  }
  .founder-card-h {
    grid-template-columns: 1fr;
  }
  .founder-card-h__photo.has-photo {
    height: 240px;
  }
  .site-footer__contact-pills {
    grid-template-columns: 1fr;
  }
  .intro-split--v2 .intro-top-stack {
    position: static;
    margin-bottom: 24px;
  }
  .intro-split--v2 .intro-partner-logo--right {
    margin-left: 0;
    margin-bottom: 24px;
  }
}


/* Polityka prywatności — czytelna karta dokumentu */
.legal-content--card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-card);
  max-width: 900px;
}

.legal-content--card h2 {
  font-family: var(--font-primary);
  font-size: 21px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 28px 0 10px;
}

.legal-content--card h2:first-child {
  margin-top: 0;
}

.legal-content--card p,
.legal-content--card li {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--color-text);
}

.legal-content--card ul {
  list-style: disc;
  padding-left: 22px;
  margin: 10px 0 16px;
}

.legal-content--card li {
  margin-bottom: 8px;
}

.legal-content--card a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .legal-content--card {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   SEO / GEO FAQ ACCORDIONS (Native HTML5 <details>/<summary>)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 960px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(30, 91, 122, 0.35);
  box-shadow: 0 8px 24px rgba(6, 30, 46, 0.06);
}

.faq-item__q {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item__q::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-item__q::after {
  content: '−';
  background: var(--color-primary);
  color: var(--color-white);
}

.faq-item__a {
  padding: 0 22px 18px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item__a p {
  margin: 0;
}

.faq-item__a a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .faq-item__q {
    padding: 15px 16px;
    font-size: 15.5px;
  }
  .faq-item__a {
    padding: 0 16px 16px;
    font-size: 14.5px;
  }
}

/* ==========================================================================
   Podstrony lokalne i usługowe SEO (miasta, proces 4-krokowy, hub linków)
   ========================================================================== */
.city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(9, 25, 39, 0.04);
}

.step-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 166, 81, 0.12);
  color: var(--color-green-dark, #0b7a42);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
}

.step-card h3 {
  font-size: 18px;
  color: var(--color-primary);
  margin: 2px 0 0;
}

.step-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

.seo-hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.seo-hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-green);
  box-shadow: var(--shadow-card);
}

.seo-hub-card h3 {
  font-size: 17px;
  color: var(--color-primary);
  margin: 0;
}

.seo-hub-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

.seo-hub-card__cta {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 4px;
}
