/* =========================================================================
   EMlines — Digitálna informačná tabuľa pre obce
   styles.css — generované podľa emlines_design_system_tokens.jsonc (v1.0)
   Brand: teal #006666, charcoal #2A2929.
   #079CA1 sa používa LEN ako dekoratívny / veľký akcent, nikdy ako malý text.
   Mobile-first. B2G/B2B, seriózny technický vzhľad.
   ========================================================================= */

/* ---------------------------------------------------------------------------
   1. TOKENS — :root CSS premenné (prefix --em-)
   --------------------------------------------------------------------------- */
:root {
  /* Brand */
  --em-teal: #006666;
  --em-charcoal: #2A2929;
  --em-white: #FFFFFF;

  /* Teal scale */
  --em-teal-50: #EAF7F7;
  --em-teal-75: #DDF2F2;
  --em-teal-100: #C8EAEA;
  --em-teal-200: #9FDADA;
  --em-teal-300: #65C1C1;
  --em-teal-400: #1E9999;
  --em-teal-500: #006666;
  --em-teal-600: #005F5F;
  --em-teal-700: #004B4B;
  --em-teal-800: #003D3D;
  --em-teal-900: #002F2F;
  --em-teal-bright: #079CA1; /* iba dekorácia / veľké akcenty */

  /* Neutral scale */
  --em-n-0: #FFFFFF;
  --em-n-25: #FAFBFB;
  --em-n-50: #F4F6F6;
  --em-n-75: #EEF2F2;
  --em-n-100: #E6EBEB;
  --em-n-200: #D8E0E0;
  --em-n-300: #B8C3C3;
  --em-n-400: #8E9A9A;
  --em-n-500: #657373;
  --em-n-600: #4B5656;
  --em-n-700: #384141;
  --em-n-800: #2A2929;
  --em-n-900: #171D1D;

  /* Semantic */
  --em-page-bg: #F4F6F6;
  --em-surface: #FFFFFF;
  --em-surface-alt: #EAF7F7;
  --em-surface-subtle: #FAFBFB;
  --em-text-primary: #2A2929;
  --em-text-secondary: #4B5656;
  --em-text-muted: #657373;
  --em-text-inverse: #FFFFFF;
  --em-border: #D8E0E0;
  --em-border-strong: #B8C3C3;
  --em-focus: #006666;
  --em-success: #0B7A62;
  --em-warning: #B7791F;
  --em-warning-bg: #FFF6D8;
  --em-danger: #B42318;
  --em-danger-bg: #FEE4E2;

  /* Gradients */
  --em-grad-hero: radial-gradient(circle at 80% 10%, rgba(0,102,102,0.18), transparent 32%), linear-gradient(135deg, #FFFFFF 0%, #F4F6F6 48%, #EAF7F7 100%);
  --em-grad-primary: linear-gradient(135deg, #006666 0%, #004B4B 100%);
  --em-grad-dark: linear-gradient(135deg, #003D3D 0%, #002F2F 60%, #171D1D 100%);
  --em-grad-card-accent: linear-gradient(180deg, rgba(0,102,102,0.10) 0%, rgba(255,255,255,0) 100%);
  --em-grad-plate: linear-gradient(135deg, #006666 0%, #004B4B 100%);

  /* Typography */
  --em-font: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --em-font-head: "Montserrat", "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --em-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  /* Engitech akcent (emlines.com): jasný teal #009999 pre CTA, eyebrow, čísla, ikony */
  --em-accent: #009999;
  --em-charcoal-dark: #1B1D21;
  --em-bg-light: #F6F6F6;

  /* Spacing scale */
  --em-sp-1: 4px;
  --em-sp-2: 8px;
  --em-sp-3: 12px;
  --em-sp-4: 16px;
  --em-sp-5: 20px;
  --em-sp-6: 24px;
  --em-sp-7: 32px;
  --em-sp-8: 40px;
  --em-sp-9: 48px;
  --em-sp-10: 64px;
  --em-sp-11: 80px;
  --em-sp-12: 96px;
  --em-sp-13: 120px;

  /* Section padding — FLUID (clamp): plynulé škálovanie od malých po veľké
     obrazovky bez závislosti na presných breakpointoch.
     Kanonické breakpointy projektu: sm 480 · md 640 · lg 768 · xl 1024 · 2xl 1280 · 3xl 1536. */
  --em-section-y: clamp(3rem, 7vw, 6rem);        /* 48px → 96px */
  --em-container-pad: clamp(1rem, 4vw, 2.5rem);  /* 16px → 40px */
  --em-grid-gap: clamp(1rem, 2.6vw, 1.5rem);     /* 16px → 24px */
  --em-card-pad: clamp(1.25rem, 3vw, 1.75rem);   /* 20px → 28px */

  /* Layout */
  --em-container-max: 1180px;
  --em-container-wide: 1360px;

  /* Radii */
  --em-r-xs: 6px;
  --em-r-sm: 10px;
  --em-r-md: 16px;
  --em-r-lg: 24px;
  --em-r-xl: 34px;
  --em-r-pill: 999px;

  /* Shadows */
  --em-shadow-sm: 0 6px 18px rgba(23, 37, 43, 0.08);
  --em-shadow-md: 0 16px 40px rgba(23, 37, 43, 0.12);
  --em-shadow-lg: 0 28px 70px rgba(23, 37, 43, 0.18);
  --em-shadow-teal: 0 16px 34px rgba(0, 102, 102, 0.22);
  --em-focus-ring: 0 0 0 4px rgba(0, 102, 102, 0.18);

  /* Motion */
  --em-dur-fast: 160ms;
  --em-dur-base: 220ms;
  --em-dur-slow: 420ms;
  --em-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------------------------------------------------------------------------
   2. RESET / BASE
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px; /* sticky header offset for anchor jumps */
  overflow-x: hidden; /* poistka proti horizontálnemu pretečeniu aj na iOS Safari */
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--em-font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--em-text-secondary);
  background: var(--em-page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.page-home {
  position: relative;
}
/* iOS-safe fixed background: `background-attachment: fixed` is broken on iOS
   Safari (renders an oversized, zoomed background and can force horizontal
   scroll, ktoré posúvalo celý obsah doľava a orezávalo texty). Namiesto toho
   použijeme fixný pseudo-element, ktorý je vždy orezaný na viewport. */
body.page-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("assets/images/banner-hero-moderne-tabule-collage.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

::selection { background: var(--em-teal); color: #fff; }

/* Scrollbar */
:root {
  scrollbar-width: thin;
  scrollbar-color: var(--em-teal-400) var(--em-n-100);
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--em-n-100); }
::-webkit-scrollbar-thumb {
  background: var(--em-teal-400);
  border-radius: var(--em-r-pill);
  border: 2px solid var(--em-n-100);
}
::-webkit-scrollbar-thumb:hover { background: var(--em-teal); }
::-webkit-scrollbar-corner { background: var(--em-n-100); }

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

/* Responzivita — globálne poistky proti horizontálnemu pretečeniu:
   príliš dlhé slová / URL / e-maily sa zalomia až keď by inak pretiekli
   (overflow-wrap), no bežné slová sa NElámu po písmenách (preto nie word-break,
   ktorý drvil napr. navigačné odkazy vo flexb­voxe). */
p, li, h1, h2, h3, h4, h5, h6, dd, dt, blockquote, figcaption, label, summary, a, span {
  overflow-wrap: break-word;
}
picture, video, canvas, iframe { max-width: 100%; }
iframe { border: 0; }

a { color: var(--em-teal-700); text-decoration: none; transition: color var(--em-dur-fast) var(--em-ease); }
a:hover { color: var(--em-teal); }

ul, ol { list-style: none; padding: 0; }

button { font-family: inherit; cursor: pointer; }

input, select, textarea, button { font: inherit; color: inherit; }

/* Headings — Montserrat (značkový web emlines.com) */
h1, h2, h3, h4, h5, h6 { color: var(--em-text-primary); font-family: var(--em-font-head); font-weight: 800; }

h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.7rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 900;
  max-width: 14ch;
}
h2 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 800;
}
h3 {
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 800;
}
h4 { font-size: 1rem; line-height: 1.3; font-weight: 800; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--em-teal);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--em-r-sm) 0;
  font-weight: 800;
}
.skip-link:focus { left: 0; color: #fff; }

/* Accessibility: focus visible */
:focus-visible {
  outline: 2px solid var(--em-focus);
  outline-offset: 3px;
  box-shadow: var(--em-focus-ring);
  border-radius: var(--em-r-xs);
}

/* ---------------------------------------------------------------------------
   3. LAYOUT — container & sections
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--em-container-max);
  margin-inline: auto;
  padding-inline: var(--em-container-pad);
}
.narrow { max-width: 820px; }
.center { text-align: center; }

.section { padding-block: var(--em-section-y); }

/* Sekcia produktov — tmavé zelené pozadie (rovnaká paleta ako header/footer) */
.section.products {
  background:
    radial-gradient(90% 170% at 12% 0%, rgba(70,160,138,0.18), transparent 55%),
    linear-gradient(135deg, #0e332d 0%, #0b1f1c 50%, #0a1211 100%);
  color: rgba(255,255,255,0.88);
}
.section.products .section-head h2 { color: #fff; }
/* Jednoriadkový nadpis len na širokých obrazovkách, kde sa zmestí;
   na mobile/tablete sa musí zalomiť, inak preteká stránku. */
@media (min-width: 1024px) {
  .section.products .section-head h2 { white-space: nowrap; }
}
.section.products .section-head { max-width: 960px; }
.section.products .section-lead { color: rgba(255,255,255,0.75); }
.section.products .link-arrow { color: var(--em-teal-bright, #5fd6d6); }
/* Karty na tmavom pozadí: polopriesvitné s jemným svetlým okrajom */
.section.products .product-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.section.products .product-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--em-teal, #009999);
}
.section.products .product-card h3 { color: #fff; }
.section.products .product-card p { color: rgba(255,255,255,0.70); }

/* ---- Benefity — horizontálny pásik pod hero ---- */
.benefits-strip {
  background: var(--em-grad-dark);
  border-bottom: none;
  padding-block: var(--em-sp-7);
}
.benefits-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  /* Marquee režim (do 1100px): obsah ide od kraja po kraj a po stranách sa
     jemne stráca (mask), aby pohyb pôsobil ako nekonečný pás. */
  padding-inline: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
/* Do 1100px sa všetkých 7 položiek nezmestí do jedného radu → namiesto lámania
   pod seba ich necháme vedľa seba a celý pás sa nekonečne posúva do strany
   (rotuje dokola). Bezšvový loop zaisťuje JS, ktorý zoznam zduplikuje. */
.benefits-strip-list {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  list-style: none;
  margin: 0; padding: 0;
  animation: benefits-marquee 24s linear infinite;
  will-change: transform;
}
.benefits-strip-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  /* medzeru „vlastní" položka (margin, nie flex-gap) → translateX(-50 %) padne
     presne na začiatok duplikátu = žiadny skok pri opakovaní. */
  margin-right: var(--em-sp-8);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  text-align: left;
  white-space: nowrap;
  max-width: none;
  line-height: 1.35;
}

@keyframes benefits-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Na desktope (jemný kurzor) pauza pri prejdení myšou pre lepšiu čitateľnosť;
   na dotyku sa neuplatní → pohyb zostáva stály. */
@media (hover: hover) and (pointer: fine) {
  .benefits-strip-list:hover { animation-play-state: paused; }
}
/* Vypnutý pohyb (prefers-reduced-motion) → žiadny marquee, klasické zalomenie. */
@media (prefers-reduced-motion: reduce) {
  .benefits-strip-inner {
    overflow: visible;
    padding-inline: var(--em-sp-6);
    -webkit-mask-image: none; mask-image: none;
  }
  .benefits-strip-list {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--em-sp-5) var(--em-sp-6);
    animation: none;
  }
  .benefits-strip-item { margin-right: 0; white-space: normal; }
  .benefits-strip-item.bsi-clone { display: none; }
}
.bsi-text {
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}
.bsi-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.88);
  flex-shrink: 0;
}
.bsi-icon svg { width: 20px; height: 20px; }

/* Od 1100px sa všetkých 7 položiek zmestí do jedného radu → statický rad
   s oddeľovačmi, žiadny pohyb (klony marquee skryjeme). */
@media (min-width: 1100px) {
  .benefits-strip-inner {
    padding-inline: var(--em-sp-6);
    overflow: visible;
    -webkit-mask-image: none; mask-image: none;
  }
  .benefits-strip-list {
    width: auto;
    justify-content: center;
    align-items: stretch;
    animation: none;
  }
  .benefits-strip-item {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 12px;
    margin-right: 0;
    white-space: normal;
    padding-inline: var(--em-sp-5);
    border-right: 1px solid rgba(255,255,255,0.12);
  }
  .benefits-strip-item:last-child {
    border-right: none;
  }
  .benefits-strip-item.bsi-clone { display: none; }  /* klony len pre marquee */
}

/* Galeria hero — dark green background, centred */
.galeria-hero {
  background: var(--em-grad-dark);
  padding-block: 120px 96px;
}
/* Mobile: zarovnané vľavo — konzistentne s hlavičkami produktových stránok.
   Centrovanie sa zapína až od 768px (nižšie). */
.galeria-hero-text {
  text-align: left;
}
.galeria-hero-text h1 {
  max-width: none;
  font-size: clamp(1.6rem, 4vw, 3.8rem);
  color: #fff;
  text-wrap: balance;
}
.galeria-hero-text .eyebrow {
  color: var(--em-teal-300);
}
.galeria-hero-text .eyebrow::before { color: var(--em-teal-300); }
.galeria-hero-text .lead {
  margin-top: 16px;
  color: rgba(255,255,255,0.72);
}
/* Od tabletu nahor: centrovaná hlavička (pôvodný dizajn), nadpis na jednom riadku. */
@media (min-width: 768px) {
  .galeria-hero-text { text-align: center; margin-inline: auto; }
  .galeria-hero-text h1 { white-space: nowrap; }
  .galeria-hero-text .eyebrow { justify-content: center; }
  .galeria-hero-text .lead { margin-inline: auto; }
}

/* ============ GALERIA CTA ============ */
.galeria-cta {
  background: linear-gradient(to top, var(--em-teal-100) 0%, #ffffff 60%);
  padding-block: var(--em-sp-12);
}
.galeria-cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--em-sp-10);
}
.galeria-cta-left {
  border-bottom: 1px solid var(--em-teal-100);
  padding-bottom: var(--em-sp-9);
}
.galeria-cta-kicker {
  display: block;
  font-family: var(--em-font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--em-teal);
  margin-bottom: var(--em-sp-5);
}
.galeria-cta-kicker::before {
  content: "//\00a0";
  color: var(--em-teal-300);
}
.galeria-cta-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--em-text-secondary);
  line-height: 1.8;
  margin: 0;
  max-width: 52ch;
}
.galeria-cta-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--em-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--em-sp-5);
  line-height: 1.15;
}
.galeria-cta-sub {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--em-text-secondary);
  margin-bottom: var(--em-sp-7);
  max-width: 42ch;
}
@media (min-width: 860px) {
  .galeria-cta-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--em-sp-11);
    align-items: center;
  }
  .galeria-cta-left {
    border-bottom: none;
    border-right: 1px solid var(--em-teal-100);
    padding-bottom: 0;
    padding-right: var(--em-sp-11);
  }
}

/* Section background alternation (tokens.usageRules.sectionAlternation) */
.problem,
.more-products,
.gallery-section,
.faq { background: var(--em-surface); }

.content-types,
.product,
.contact,
.about,
.responsible { background: var(--em-page-bg); }

.audience {
  /* `fixed` zámerne nepoužité — na iOS Safari spôsobuje zväčšené/posunuté
     pozadie a horizontálne pretečenie. `scroll` je spoľahlivé na všetkých
     zariadeniach. */
  background:
    linear-gradient(rgba(5,90,90,0.62), rgba(5,90,90,0.62)),
    url("assets/images/foto-zilina-namestie-infopoint.png") center/cover no-repeat scroll;
}

.audience .section-head h2 { color: #fff; }
.audience .section-head p { color: rgba(255,255,255,0.85); }

/* Soft highlight block */
.funding { background: var(--em-surface-alt); }

/* Section header (centered, eyebrow line) */
.section-head {
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 42px;
  text-align: center;
}
.about .section-head { max-width: 1100px; }
.about .section-head h2 { font-size: clamp(1.7rem, 2.3vw, 2.45rem); }
.about .section-lead { max-width: 920px; }
.section-head .eyebrow { justify-content: center; }

/* Eyebrow + kicker */
.eyebrow,
.kicker {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--em-font-head);
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--em-accent);
  margin-bottom: 16px;
}
/* Engitech „//" prefix (emlines.com) */
.eyebrow::before,
.kicker::before {
  content: "//";
  font-weight: 900;
  color: var(--em-accent);
}

/* Lead paragraph */
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.72;
  color: var(--em-text-secondary);
  max-width: 700px;
}
.section-head .lead { margin-inline: auto; }

/* Generic note / disclaimer block */
.note {
  margin-top: var(--em-sp-7);
  background: var(--em-surface-alt);
  border: 1px solid rgba(0,102,102,0.16);
  border-left: 4px solid var(--em-teal);
  border-radius: var(--em-r-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--em-teal-700);
}

/* ---------------------------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 1rem 2.1rem;
  border: 0;
  border-radius: 10px;
  font-family: var(--em-font-head);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transition: transform var(--em-dur-base) var(--em-ease),
              box-shadow var(--em-dur-base) var(--em-ease),
              background var(--em-dur-base) var(--em-ease),
              color var(--em-dur-base) var(--em-ease),
              border-color var(--em-dur-base) var(--em-ease);
}

.btn-primary {
  background: var(--em-accent);
  color: #fff;
  box-shadow: none;
}
.btn-primary:hover {
  color: #fff;
  background: var(--em-teal-700);
}

.btn-ghost {
  background: transparent;
  color: var(--em-accent);
  border: 1px solid currentColor;
}
.btn-ghost:hover {
  background: var(--em-accent);
  color: #fff;
}

.btn-sm { min-height: 46px; padding: 0.7rem 1.4rem; font-size: 0.78rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------------------
   5. HEADER + NAV
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Tmavé teal-zelené gradientové pozadie: tmavá uhlíková vľavo, plynulý
     prechod do svetlejšej zelenej vpravo (smer zľava doprava). */
  background:
    radial-gradient(90% 170% at 88% 0%, rgba(70,160,138,0.20), transparent 55%),
    linear-gradient(90deg, #0a1211 0%, #0b1714 30%, #0e332d 62%, #17524a 100%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* Horná jemná fialová linka */
.site-header::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #4f3fae 0%, #8a6ff0 50%, #4f3fae 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 22px);
  min-height: 72px;
  width: 100%;
  max-width: var(--em-container-max);
  margin-inline: auto;
  padding-inline: var(--em-container-pad);
}

.brand { display: inline-flex; align-items: center; margin-right: auto; }
/* Farebné logo (teal „EM“ + tmavé „lines“) – zobrazené v pôvodných farbách. */
.brand-logo {
  max-width: 190px; max-height: 40px; width: auto; height: auto;
}

.nav-desktop { display: none; gap: clamp(14px, 1.3vw, 26px); align-items: center; }
.nav-desktop a {
  color: rgba(255,255,255,0.92);
  font-size: 0.94rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: #5fd6d6;
  border-radius: var(--em-r-pill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--em-dur-base) var(--em-ease);
}
.nav-desktop a:hover { color: #5fd6d6; }
.nav-desktop a:hover::after { transform: scaleX(1); }

/* Aktívna sekcia (scroll-spy): rovnaké zvýraznenie ako hover — teal farba +
   podčiarknutie. Ostatné odkazy zostávajú biele. */
.nav-desktop a.is-current { color: #5fd6d6; }
.nav-desktop a.is-current::after { transform: scaleX(1); }

.nav-cta { display: none; }

/* Mobile toggle (hamburger) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--em-r-sm);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--em-dur-base) var(--em-ease),
              opacity var(--em-dur-base) var(--em-ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  background: #0c1714;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 8px var(--em-container-pad) 16px;
}
.nav-mobile a {
  color: rgba(255,255,255,0.92);
  font-weight: 750;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a:hover { color: #5fd6d6; }
.nav-mobile a.is-current { color: #5fd6d6; }

/* ---------------------------------------------------------------------------
   5b. NAV DROPDOWN (desktop megamenu + mobile accordion)
   --------------------------------------------------------------------------- */

/* Desktop dropdown wrapper */
.nav-dropdown {
  position: relative;
}

/* Trigger button — same visual style as nav links */
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.92);
  font-size: 0.94rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  padding: 6px 2px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.nav-dropdown-btn::after {
  content: "";
  position: absolute;
  left: 0; right: 20px; bottom: -4px;
  height: 2px;
  background: #5fd6d6;
  border-radius: var(--em-r-pill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--em-dur-base) var(--em-ease);
}
.nav-dropdown-btn:hover { color: #5fd6d6; }
.nav-dropdown-btn:hover::after { transform: scaleX(1); }
.nav-dropdown-btn[aria-expanded="true"] { color: #5fd6d6; }
.nav-dropdown-btn[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-dropdown-btn.is-current { color: #5fd6d6; }
.nav-dropdown-btn.is-current::after { transform: scaleX(1); }

.nav-dropdown-icon {
  width: 14px; height: 14px;
  stroke: currentColor;
  transition: transform var(--em-dur-base) var(--em-ease);
  flex-shrink: 0;
}
.nav-dropdown-btn[aria-expanded="true"] .nav-dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 340px;
  background: #0c1714;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  padding: 16px;
  z-index: 200;
  animation: dropdownIn 0.16s ease forwards;
}
.nav-dropdown-panel.is-open {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Vertical divider between groups */
.nav-dropdown-divider {
  background: rgba(255,255,255,0.08);
  margin: 0 8px;
}

/* Category group */
.nav-dropdown-group {
  padding: 4px 8px;
}

/* Category heading link */
.nav-dropdown-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 0.80rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 8px;
  transition: color var(--em-dur-base) var(--em-ease);
}
.nav-dropdown-category:hover { color: #5fd6d6; }
.nav-dropdown-cat-arrow {
  font-size: 0.9rem;
  opacity: 0.5;
  transition: opacity var(--em-dur-base) var(--em-ease), transform var(--em-dur-base) var(--em-ease);
}
.nav-dropdown-category:hover .nav-dropdown-cat-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Product links inside group */
.nav-dropdown-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-item {
  color: rgba(255,255,255,0.72);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background var(--em-dur-base) var(--em-ease), color var(--em-dur-base) var(--em-ease);
}
.nav-dropdown-item:hover {
  background: rgba(95,214,214,0.10);
  color: #5fd6d6;
}

/* Mobile dropdown inside nav-mobile */
.nav-mobile-dropdown {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: rgba(255,255,255,0.92);
  font-size: inherit;
  font-weight: 750;
  padding: 14px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.nav-mobile-dropdown-btn:hover { color: #5fd6d6; }
.nav-mobile-dropdown-btn[aria-expanded="true"] { color: #5fd6d6; }
.nav-mobile-dropdown-btn.is-current { color: #5fd6d6; }
.nav-mobile-dropdown-icon {
  width: 16px; height: 16px;
  stroke: currentColor;
  transition: transform var(--em-dur-base) var(--em-ease);
  flex-shrink: 0;
}
.nav-mobile-dropdown-btn[aria-expanded="true"] .nav-mobile-dropdown-icon {
  transform: rotate(180deg);
}

.nav-mobile-dropdown-panel {
  padding: 0 4px 12px;
}
.nav-mobile-cat {
  display: block;
  color: rgba(255,255,255,0.60);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 10px 0 4px;
  border-bottom: none;
}
.nav-mobile-cat:hover { color: #5fd6d6; }
.nav-mobile-product {
  display: block;
  color: rgba(255,255,255,0.80);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 7px 12px;
  border-bottom: none;
}
.nav-mobile-product:hover { color: #5fd6d6; }

/* ---------------------------------------------------------------------------
   6. HERO
   --------------------------------------------------------------------------- */
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--em-text-secondary);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--em-sp-3);
  margin-top: var(--em-sp-8);
}
.hero-actions .btn { width: 100%; } /* mobile: full width primary CTA */

/* Trust chips */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--em-sp-2);
  margin-top: var(--em-sp-8);
}
.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(0,102,102,0.20);
  color: var(--em-teal);
  border-radius: var(--em-r-pill);
  padding: 8px 14px 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}
.trust-chips li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--em-teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Hero media — device photo with plate behind (tokens.hero.imageTreatment) */
.hero-media {
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.device-frame {
  position: relative;
  z-index: 1;
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  border-radius: var(--em-r-xl);
  padding: 12px;
  box-shadow: var(--em-shadow-lg);
  max-width: 420px;
  width: 100%;
}
/* decorative teal plate behind the image */
.device-frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 24px -18px -18px 24px;
  background: var(--em-grad-plate);
  border-radius: var(--em-r-xl);
}
/* subtle bright-teal decorative glow line (allowed decorative use) */
.device-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--em-r-xl);
  padding: 1px;
  background: linear-gradient(160deg, var(--em-teal-bright) 0%, transparent 42%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.device-frame img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--em-r-xl) - 12px);
  object-fit: cover;
}
.device-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--em-sp-5);
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--em-text-secondary);
}
.device-tag .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--em-teal);
  box-shadow: 0 0 0 4px rgba(0,102,102,0.16);
}

/* ---------------------------------------------------------------------------
   7. VALUE STRIP (dark band)
   --------------------------------------------------------------------------- */
.value-strip {
  background: var(--em-grad-dark);
  color: #fff;
  padding-block: var(--em-sp-9);
  position: relative;
  overflow: hidden;
}
/* subtle diagonal decorative pattern */
.value-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 22px);
  pointer-events: none;
}
.value-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--em-grid-gap);
}
.value-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--em-r-md);
  padding: var(--em-card-pad);
}
.value-card h3 { color: #fff; font-size: 1.08rem; margin-bottom: var(--em-sp-2); }
.value-card p { color: rgba(255,255,255,0.78); font-size: 0.95rem; }

/* ---------------------------------------------------------------------------
   8. PROBLEM
   --------------------------------------------------------------------------- */
.problem-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--em-sp-9);
  align-items: center;
}

.problem-text h2 {
  text-align: left;
  margin-bottom: var(--em-sp-5);
  color: var(--em-teal);
}

.problem-lead {
  font-size: 1.1rem;
  color: var(--em-text-secondary);
  line-height: 1.65;
  max-width: 44ch;
  margin-top: var(--em-sp-4);
  margin-bottom: 0;
  padding-bottom: var(--em-sp-7);
  border-bottom: 1px solid var(--em-border);
}

.problem-text .eyebrow { justify-content: flex-start; }

.problem-img {
  border-radius: var(--em-r-xl);
  overflow: hidden;
  box-shadow: var(--em-shadow-lg);
  background: var(--em-surface-alt);
  /* žiadny min-height — box kopíruje rozmer fotky, aby nevznikol prázdny pruh */
  line-height: 0;
}

.problem-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.check-list.problem-list {
  max-width: 46ch;
  gap: var(--em-sp-5);
}

.check-list.problem-list li {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--em-text-primary);
  padding-left: 36px;
}

.check-list.problem-list li::before {
  width: 22px;
  height: 22px;
  top: 2px;
  border-radius: 0;
  background: transparent;
  border: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23006666' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

@media (min-width: 860px) {
  .problem-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--em-sp-11);
  }
}

/* legacy selectors kept for non-.problem-inner context */
.problem .eyebrow { justify-content: flex-start; }
.problem h2 { margin-bottom: var(--em-sp-5); }
.check-list {
  display: grid;
  gap: var(--em-sp-3);
  margin-top: var(--em-sp-7);
}
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--em-text-secondary);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--em-surface-alt);
  border: 1px solid rgba(0,102,102,0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23006666' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------------------------------------------------------------------------
   9. CARD GRIDS (content types, benefits, products)
   --------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--em-grid-gap);
}

/* base card look shared by info/benefit/product cards */
.info-card,
.benefit-card,
.product-card {
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  border-radius: var(--em-r-lg);
  padding: 28px;
  box-shadow: var(--em-shadow-sm);
  transition: transform var(--em-dur-base) var(--em-ease),
              box-shadow var(--em-dur-base) var(--em-ease),
              border-color var(--em-dur-base) var(--em-ease);
}
.info-card:hover,
.benefit-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--em-shadow-md);
  border-color: rgba(0,102,102,0.28);
}

.info-card h3,
.benefit-card h3,
.product-card h3 { margin-bottom: var(--em-sp-3); }
.info-card p,
.benefit-card p,
.product-card p { color: var(--em-text-secondary); font-size: 0.96rem; }

/* Product card with top image */
.product-card--img {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.product-card--img .product-card-img {
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.product-card--img .product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card--img h3,
.product-card--img p,
.product-card--img .btn {
  margin-left: 28px;
  margin-right: 28px;
}
.product-card--img h3 { margin-top: 24px; }
.product-card--img p { flex: 1; }
.product-card--img .btn { margin-bottom: 28px; align-self: flex-start; }

/* feature icon circle */
.info-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: var(--em-sp-5);
  border-radius: var(--em-r-pill);
  background: var(--em-surface-alt);
  color: var(--em-teal);
  border: 1px solid rgba(0,102,102,0.16);
}
.info-ico svg { width: 24px; height: 24px; }

/* note inside content-types */
.content-types .note { max-width: 760px; margin-inline: auto; text-align: left; }

/* Info card hover image — base */
.info-card--hover-img { position: relative; overflow: hidden; }
.info-card--hover-img::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s var(--em-ease);
  z-index: 0;
  pointer-events: none;
}
.info-card--hover-img:hover::before { opacity: 1; }
.info-card--hover-img > * { position: relative; z-index: 2; }
.info-card--hover-img:hover h3,
.info-card--hover-img:hover p { color: #fff; }
.info-card--hover-img:hover .info-ico { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); color: #fff; }

/* Per-card hover images */
.info-card--img-oznamy::before {
  background:
    linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.48)),
    url('assets/images/foto-oznamy-obce-ruzomberok.png') center / cover no-repeat;
}
.info-card--img-festival::before {
  background:
    linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.48)),
    url('assets/images/foto-oznamy-obce-festival.png') center / cover no-repeat;
}
.info-card--img-zastavka::before {
  background:
    linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.48)),
    url('assets/images/foto-cestovny-poriadok-zastavka.png') center / cover no-repeat;
}
.info-card--img-turistika::before {
  background:
    linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.48)),
    url('assets/images/foto-turistika-infopoint.png') center / cover no-repeat;
}
.info-card--img-pocasie::before {
  background:
    linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.48)),
    url('assets/images/foto-pocasie-solar.png') center / cover no-repeat;
}
.info-card--img-nudzove::before {
  background:
    linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.48)),
    url('assets/images/foto-nudzove-informacie.png') center / cover no-repeat;
}

/* About-cards hover images */
.info-card--img-solution::before {
  background:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
    url('assets/images/foto-totem-riesenie.png') center / cover no-repeat;
}
.info-card--img-standards::before {
  background:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
    url('assets/images/produkt-em860-displej.jpg') center / cover no-repeat;
}
.info-card--img-slovakia::before {
  background:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
    url('assets/images/foto-zilina-namestie.jpg') center 30% / cover no-repeat;
}
.info-card--img-solar::before {
  background:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
    url('assets/images/gallery-zastavka-solar.jpg') center / cover no-repeat;
}

/* Benefits — dark teal redesign */
.section.benefits { background: var(--em-grad-dark); }
.section.benefits .section-head h2 { color: #fff; }

.benefits .benefit-card {
  background: var(--em-teal-700);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: none;
  padding: 32px 28px 28px;
}
.benefits .benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  border-color: var(--em-teal-400);
}
.benefits .benefit-card::before { display: none; }

.benefit-num {
  display: block;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.08);
  margin-bottom: 16px;
  pointer-events: none;
  user-select: none;
}
.benefits .benefit-card h3 { color: #fff; }
.benefits .benefit-card p { color: rgba(255,255,255,0.58); }

/* Benefits grid — na mobile 2 karty vedľa seba + menší text/číslo, aby sekcia
   nebola taká vysoká a vyžadovala menej scrollovania. */
.benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.benefits .benefit-card { padding: 18px 16px 16px; }
.benefit-num { font-size: 2.6rem; margin-bottom: 8px; }
.benefits .benefit-card h3 {
  font-size: clamp(0.98rem, 3.4vw, 1.15rem);
  line-height: 1.2;
  margin-bottom: var(--em-sp-2);
}
.benefits .benefit-card p {
  font-size: clamp(0.8rem, 2.6vw, 0.92rem);
  line-height: 1.4;
}
@media (min-width: 768px) {
  .benefits .benefit-card { padding: 32px 28px 28px; }
  .benefit-num { font-size: 4.5rem; margin-bottom: 16px; }
  .benefits .benefit-card h3 { font-size: 1.18rem; }
  .benefits .benefit-card p { font-size: 0.96rem; }
}

/* Product (EM 860) feature section */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--em-sp-9);
  align-items: center;
}
.product-copy .eyebrow { justify-content: flex-start; }
.product-copy h2 { margin-bottom: var(--em-sp-5); }
.spec-list {
  display: grid;
  gap: 10px;
  margin: var(--em-sp-6) 0;
}
.spec-list li {
  position: relative;
  padding-left: 28px;
  color: var(--em-text-primary);
  font-size: 0.98rem;
}
.spec-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--em-teal);
  border-radius: 2px;
  transform: rotate(45deg);
}
/* config note = warning-style card (unconfirmed params) */
.config-note {
  background: var(--em-warning-bg);
  border: 1px solid rgba(183,121,31,0.25);
  border-radius: var(--em-r-sm);
  padding: 14px 16px;
  color: #5C4108;
  font-size: 0.92rem;
  margin-bottom: var(--em-sp-6);
}
.product-actions { display: flex; flex-wrap: wrap; gap: var(--em-sp-3); }

/* Product image plate */
.product-media {
  margin: 0;
  background: var(--em-surface-alt);
  border: 1px solid var(--em-border);
  border-radius: var(--em-r-md);
  padding: 18px;
  box-shadow: var(--em-shadow-sm);
  max-width: 420px;
  justify-self: center;
}
.product-media img {
  width: 100%;
  border-radius: var(--em-r-sm);
  object-fit: cover;
}

/* More products: highlight first (EM 731) card subtly as featured row */
.product-card h3 { color: var(--em-teal-700); }

/* ---------------------------------------------------------------------------
   10. PROCESS TIMELINE
   --------------------------------------------------------------------------- */
.section.process {
  background: var(--em-grad-dark);
}
.section.process .section-head h2 {
  color: #fff;
}

.process-timeline {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  gap: 0;
}

/* Horizontal connecting line through circle centres */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 39px; /* half of 80px circle */
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--em-teal-400);
  z-index: 0;
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.process-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--em-teal-400);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--em-teal-900);
  color: var(--em-teal-bright);
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--em-font-heading);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, background 0.2s;
}
.process-step:hover .process-circle {
  border-color: var(--em-teal-bright);
  background: var(--em-teal-800);
}

.process-step h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: var(--em-sp-2);
}
.process-step p {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Mobile: vertikálny zoznam bez vodorovnej čiary. Každý krok je grid s PEVNOU
   šírkou stĺpca nadpisu → popisy v 3. stĺpci začínajú u všetkých riadkov na
   rovnakej zvislej osi (nezáleží na dĺžke nadpisu). */
@media (max-width: 639px) {
  .process-timeline { flex-direction: column; gap: 32px; }
  .process-timeline::before { display: none; }
  .process-step {
    display: grid;
    grid-template-columns: 64px 7.5em 1fr;  /* kruh | nadpis (pevne) | popis */
    column-gap: 16px;
    align-items: center;
    text-align: left;
    padding: 0;
  }
  .process-circle { width: 64px; height: 64px; font-size: 1.1rem; margin-bottom: 0; }
  .process-step h3 { margin-top: 0; }
}

/* ---------------------------------------------------------------------------
   11. GALLERY
   --------------------------------------------------------------------------- */
/* Galéria — responzívny rovnomerný grid (auto-fill): počet stĺpcov sa plynule
   prispôsobí šírke (1 na mobile → viac na väčších), dlaždice majú jednotný
   pomer strán; plný obrázok ukáže lightbox. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}
.gallery-item {
  position: relative;
  padding: 0;
  border-radius: var(--em-r-lg);
  overflow: hidden;
  background: var(--em-surface-alt);
  cursor: zoom-in;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
/* dark vignette overlay */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(0,0,0,0) 45%, rgba(5,28,28,0.6) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
/* zoom icon */
.gallery-item::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.65);
  width: 46px; height: 46px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.93);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  pointer-events: none;
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:hover::before,
.gallery-item:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.055); }

/* ---------------------------------------------------------------------------
   12. AUDIENCE
   --------------------------------------------------------------------------- */
.audience-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.audience-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;   /* potomkovia flexu sa smú zmenšiť, text nepretečie box */
  background: var(--em-teal-bright, #079CA1);
  border: none;
  border-radius: 20px;
  /* fluidné odsadenie + veľkosť písma — text má vždy odstup od okrajov boxu
     aj na úzkych telefónoch a nikdy nepretŕča */
  padding: clamp(14px, 4vw, 22px) clamp(16px, 5vw, 26px);
  font-size: clamp(0.95rem, 3.1vw, 1.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  overflow-wrap: break-word;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.audience-list li::before {
  content: "";
  flex: 0 0 22px;
  width: 22px; height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.audience-cta {
  margin-top: 40px;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   13. PRICING — dark CTA band
   --------------------------------------------------------------------------- */
.pricing {
  background: transparent;
  color: #fff;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,40,40,0.62);
  pointer-events: none;
}
.pricing .container { position: relative; }
.pricing h2 { color: #fff; }
.pricing .eyebrow { color: var(--em-teal-200); }
.pricing .eyebrow::before { background: var(--em-teal-200); }
.pricing .lead { color: rgba(255,255,255,0.78); }
.pricing .btn-primary { margin-top: var(--em-sp-4); }

/* ---------------------------------------------------------------------------
   14. FUNDING (soft highlight, optional)
   --------------------------------------------------------------------------- */
.funding .eyebrow { justify-content: flex-start; }

/* ---------------------------------------------------------------------------
   15. FAQ (accordion)
   --------------------------------------------------------------------------- */
.faq .container { max-width: 900px; }
.faq { padding-bottom: var(--em-sp-8); }
.accordion {
  display: grid;
  gap: 12px;
}
.acc-item {
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  border-radius: var(--em-r-md);
  overflow: hidden;
  transition: border-color var(--em-dur-base) var(--em-ease),
              box-shadow var(--em-dur-base) var(--em-ease);
}
.acc-item:hover { border-color: rgba(0,102,102,0.28); }
.acc-item.open { border-color: rgba(0,102,102,0.35); box-shadow: var(--em-shadow-sm); }
.acc-item h3 { margin: 0; font-size: 1.02rem; }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--em-sp-4);
  text-align: left;
  background: transparent;
  border: 0;
  padding: 18px 20px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--em-text-primary);
  line-height: 1.4;
}
.acc-trigger:hover { color: var(--em-teal-700); }
/* plus/minus icon */
.acc-icon {
  position: relative;
  flex: 0 0 auto;
  width: 20px; height: 20px;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--em-teal);
  border-radius: 2px;
  transition: transform var(--em-dur-base) var(--em-ease),
              opacity var(--em-dur-base) var(--em-ease);
}
.acc-icon::before { left: 0; top: 9px; width: 20px; height: 2px; }
.acc-icon::after  { left: 9px; top: 0; width: 2px; height: 20px; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: scaleY(0); }

/* animated panel; readable without JS via .no-js fallback */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--em-dur-base) var(--em-ease);
}
.acc-panel > p {
  overflow: hidden;
  margin: 0;
  padding: 0 20px;
  color: var(--em-text-secondary);
  font-size: 0.98rem;
}
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-item.open .acc-panel > p { padding-bottom: 20px; }

/* No-JS: panels open, hide +/- icon */
.no-js .acc-panel { grid-template-rows: 1fr; }
.no-js .acc-panel > p { padding-bottom: 20px; }
.no-js .acc-icon { display: none; }

/* ---------------------------------------------------------------------------
   16. CONTACT + FORM
   --------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--em-sp-9);
  align-items: start;
}
.contact-intro .eyebrow { justify-content: flex-start; }
.contact-intro h2 { margin-bottom: var(--em-sp-5); }

.contact-direct {
  display: grid;
  gap: var(--em-sp-5);
  margin-top: var(--em-sp-7);
}
.contact-direct li { display: flex; flex-direction: column; gap: 4px; }
.cd-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--em-text-muted);
}
.contact-direct a {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--em-text-primary);
}
.contact-direct a:hover { color: var(--em-teal); }

/* Form */
.lead-form {
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  border-radius: var(--em-r-lg);
  padding: 28px;
  box-shadow: var(--em-shadow-sm);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--em-sp-5);
}
.field { display: grid; gap: 6px; min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; max-width: 100%; }
.field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--em-text-primary);
}
.req { color: var(--em-teal); }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  border-radius: var(--em-r-sm);
  padding: 14px 16px;
  color: var(--em-text-primary);
  transition: border-color var(--em-dur-base) var(--em-ease),
              box-shadow var(--em-dur-base) var(--em-ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--em-n-400); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--em-teal);
  box-shadow: var(--em-focus-ring);
}
.field textarea { resize: vertical; min-height: 92px; }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--em-danger);
  box-shadow: 0 0 0 4px rgba(180,35,24,0.12);
}
.field-error {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--em-danger);
}

/* checkbox row */
.field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--em-sp-3);
}
.field-check input {
  width: 24px; height: 24px;   /* min. dotykový cieľ WCAG 2.2 */
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--em-teal);
}
.field-check label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--em-text-muted);
  cursor: pointer;   /* celý text súhlasu je klikateľný cieľ */
}
.field-check .field-error { grid-column: 1 / -1; }

.form-status {
  margin: 0;
  min-height: 1.3em;
  font-size: 0.95rem;
  font-weight: 700;
}
.form-status.ok { color: var(--em-success); }
.form-status.err { color: var(--em-danger); }

/* ---------------------------------------------------------------------------
   17. FOOTER
   --------------------------------------------------------------------------- */
/* Screen-reader-only utility */
.u-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;
}

.site-footer {
  position: relative;
  /* Teal-zelený prechod vodorovne — opačne než hlavička: tmavá uhlíková vľavo,
     plynule do svetlejšej teal-zelenej vpravo (so svetlým akcentom vpravo). */
  background:
    radial-gradient(90% 170% at 88% 100%, rgba(70,160,138,0.22), transparent 55%),
    linear-gradient(90deg, #0a1211 0%, #0b1714 30%, #0e332d 62%, #17524a 100%);
  color: rgba(255,255,255,0.66);
  padding-top: var(--em-sp-8); /* kompaktnejšie na mobile; väčší odstup od 880px */
}

/* Signature: a single teal "line" across the top — a nod to EMlines */
.footer-line {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--em-teal) 16%, var(--em-teal-bright) 50%, var(--em-teal) 84%, transparent 100%);
}

/* ---- Top region: brand + columns ---- */
/* Mobile-first: 2 stĺpce, aby pätička nebola príliš dlhá (značka cez celú šírku,
   Spoločnosť | Kontakt vedľa seba, Navigácia cez celú šírku s odkazmi 2-up). */
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--em-sp-6) var(--em-sp-5);
  padding-bottom: var(--em-sp-8);
}
.footer-brand { grid-column: 1 / -1; }
.footer-main nav.footer-col { grid-column: 1 / -1; }
.footer-main nav.footer-col .footer-links {
  grid-template-columns: 1fr 1fr;
  column-gap: var(--em-sp-5);
}

.footer-logo-link { display: inline-block; }
.footer-logo {
  max-height: 30px; width: auto; /* farebné logo v pôvodných farbách */
}
.footer-tagline {
  margin: var(--em-sp-4) 0 0;
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.60);
}

/* social icons */
.footer-social {
  display: flex; flex-wrap: wrap;
  gap: var(--em-sp-3);
  margin: var(--em-sp-6) 0 0; padding: 0;
  list-style: none;
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: rgba(255,255,255,0.80);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-social a:hover {
  color: #fff;
  background: var(--em-teal);
  border-color: var(--em-teal-300);
  transform: translateY(-2px);
}

/* column headings */
.footer-h {
  margin: 0 0 var(--em-sp-4);
  color: #fff;
  font-family: var(--em-font-head);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* company / legal column */
.footer-entity {
  margin: 0 0 var(--em-sp-2);
  color: #aeb4b2; font-weight: 700; font-size: 1rem;
}
.footer-address {
  margin: 0 0 var(--em-sp-4);
  font-style: normal; line-height: 1.6;
  color: rgba(255,255,255,0.62);
}
.footer-reg { margin: 0; display: grid; gap: 6px; }
.footer-reg-row { display: grid; grid-template-columns: 58px 1fr; gap: var(--em-sp-3); }
.footer-reg dt {
  color: rgba(255,255,255,0.42);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding-top: 2px;
}
.footer-reg dd { margin: 0; font-size: 0.84rem; line-height: 1.5; color: rgba(255,255,255,0.72); }

/* link lists (Kontakt, Navigácia) */
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-links a {
  display: inline-block;
  padding-block: 7px;   /* pohodlnejší dotykový cieľ na mobile */
  font-size: 0.95rem;
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  transition: color .18s ease;
}
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact a { color: var(--em-teal-300); } /* contact = actionable */
.footer-contact a:hover { color: #fff; }

/* ---- Skupina EMTEST band (signature trust element) ---- */
.footer-group {
  border-bottom: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.015);
}
.footer-group-inner { display: grid; gap: var(--em-sp-4); padding-block: var(--em-sp-6); }
.footer-group-label {
  margin: 0;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.footer-group-label strong { color: rgba(255,255,255,0.85); font-weight: 800; }
.footer-group-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-group-list a {
  display: flex; flex-direction: column; gap: 2px;
  height: 100%;
  padding: var(--em-sp-3);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--em-r-sm);
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.footer-group-list a:hover {
  border-color: var(--em-teal-300);
  background: rgba(0,102,102,0.20);
  transform: translateY(-2px);
}
.fg-name {
  color: #fff; font-family: var(--em-font-head);
  font-weight: 700; font-size: 0.98rem;
}
.fg-name::after { content: "↗"; margin-left: 6px; font-size: 0.82em; color: var(--em-teal-300); }
.fg-desc { font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ---- Bottom bar ---- */
/* extra bottom space so the copyright clears the fixed mobile CTA (54px + offset) */
.footer-bottom {
  padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #1a1f1e;
}
.footer-bottom-inner { display: grid; gap: var(--em-sp-3); }
.footer-copy { margin: 0; font-size: 0.84rem; color: #aeb4b2; }
.footer-legal-links {
  display: flex; flex-wrap: wrap;
  gap: var(--em-sp-2) var(--em-sp-5);
  list-style: none; margin: 0; padding: 0;
}
.footer-legal-links a {
  font-size: 0.84rem; color: #aeb4b2;
  text-decoration: none; transition: color .18s ease;
}
.footer-legal-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Tlačidlo „späť na vrch stránky" — fixné vpravo dole, objaví sa po scrolle */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: rgba(255,255,255,0.85);
  background: rgba(15,30,28,0.72);
  border: 1.5px solid var(--em-teal, #009999);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, color .18s ease, border-color .18s ease, background .18s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  color: var(--em-teal-bright, #5fd6d6);
  border-color: var(--em-teal-bright, #5fd6d6);
  background: rgba(0,100,100,0.55);
  transform: translateY(-2px);
}
.back-to-top svg { display: block; }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity .18s ease; transform: none !important; }
}

/* focus visibility on dark footer */
.site-footer a:focus-visible {
  outline: 2px solid var(--em-teal-300);
  outline-offset: 3px; border-radius: 4px;
}

/* ---- Footer responsive ---- */
@media (min-width: 560px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-group-list { gap: var(--em-sp-3); }
  .footer-group-list a { padding: var(--em-sp-3) var(--em-sp-4); }
  .footer-bottom-inner { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 768px) {
  /* sticky mobile CTA is hidden from 768px up — drop the extra clearance */
  .footer-bottom { padding-bottom: 10px; }
}
@media (min-width: 880px) {
  .site-footer { padding-top: var(--em-sp-10); }
  .footer-main {
    grid-template-columns: 1.7fr 1.25fr 1fr 1fr;
    gap: var(--em-sp-8);
    padding-bottom: var(--em-sp-9);
  }
  .footer-brand { grid-column: auto; }
  /* späť do jedného stĺpca odkazov v Navigácii na desktope */
  .footer-main nav.footer-col { grid-column: auto; }
  .footer-main nav.footer-col .footer-links { grid-template-columns: 1fr; }
  .footer-group-inner {
    grid-template-columns: minmax(180px, max-content) 1fr;
    align-items: center; gap: var(--em-sp-7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-social a, .footer-group-list a { transition: none; }
  .footer-social a:hover, .footer-group-list a:hover { transform: none; }
}

/* ---------------------------------------------------------------------------
   18. STICKY MOBILE CTA
   --------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  background: var(--em-grad-primary);
  color: #fff;
  font-weight: 850;
  border-radius: var(--em-r-pill);
  box-shadow: 0 18px 44px rgba(0,0,0,0.25);
}
.sticky-cta:hover { color: #fff; }

/* ---------------------------------------------------------------------------
   19. LIGHTBOX
   --------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15,22,22,0.92);
}
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  border-radius: var(--em-r-md);
  box-shadow: var(--em-shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 14px; right: 18px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  padding: 8px;
}

/* =========================================================================
   20. RESPONSIVE — mobile-first up
   ========================================================================= */

/* ≥ 560px — two-up cards, larger spacing (spacing teraz fluidné cez clamp tokeny) */
@media (min-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { width: auto; }
}

/* ≥ 768px — tablet */
@media (min-width: 768px) {
  body { font-size: 16px; }

  .hero { padding-block: 150px 72px; }

  .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .lead-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* full-width fields span both columns */
  .lead-form .field-check,
  .lead-form button,
  .lead-form .form-status,
  .lead-form .field textarea { }
  .field:has(textarea),
  .field-check,
  .lead-form > button,
  .form-status { grid-column: 1 / -1; }
}

/* Desktopová navigácia sa zapína až na ≥1024px — plná navigácia (7 položiek +
   dropdown + CTA) sa pod túto šírku nezmestí, preto sa nižšie používa hamburger.
   Sticky mobilné CTA preto tiež skrývame až od 1024px (na tablete musí ostať). */
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .sticky-cta { display: none; }
}

/* ≥ 1024px — desktop: hero two columns, three-up cards, larger sections */
@media (min-width: 1024px) {
  .hero { padding-block: 168px 80px; }

  .card-grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .value-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .audience-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .audience-list li { font-size: 0.88rem; white-space: nowrap; }
  .product-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .product-media { order: 2; max-width: none; }
}

/* ≥ 1200px — wider comfort */
@media (min-width: 1200px) {
  .section-head { margin-bottom: 48px; }
}

/* =========================================================================
   21. REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .info-card:hover,
  .benefit-card:hover,
  .product-card:hover,
  .gallery-item:hover img { transform: none !important; }
}

/* =========================================================================
   22. PRINT (basic safe)
   ========================================================================= */
@media print {
  .site-header, .nav-toggle, .nav-mobile, .sticky-cta, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .value-strip, .pricing, .site-footer { background: #fff !important; color: #000 !important; }
  .value-card, .value-card h3, .value-card p,
  .pricing h2, .pricing .lead,
  .footer-h, .footer-entity, .footer-address, .footer-tagline,
  .footer-reg dt, .footer-reg dd, .footer-links a, .footer-copy,
  .footer-legal-links a, .footer-group-label, .fg-name, .fg-desc { color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
  .btn { border: 1px solid #000; box-shadow: none; }
}

/* =========================================================================
   21. O SPOLOČNOSTI / DÔVERYHODNOSŤ + doplnkové komponenty (Fáza 2)
   ========================================================================= */
.about { background: var(--em-surface-alt); }
.section-lead { margin-inline: auto; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--em-sp-5);
  margin-bottom: var(--em-sp-9);
}
.stat-card {
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  border-radius: var(--em-r-lg);
  padding: var(--em-sp-7) var(--em-sp-6);
  text-align: center;
  box-shadow: var(--em-shadow-sm);
}
.stat-num {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--em-teal);
}
.stat-label {
  display: block;
  margin-top: var(--em-sp-3);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--em-text-secondary);
}
.about-cards {
  margin-top: var(--em-sp-9);
  grid-template-columns: minmax(0, 1fr);   /* 1-up na najmenších displejoch */
}
@media (min-width: 480px) {
  .about-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .about-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Karty „O spoločnosti" — menší text a tesnejší padding, aby na úzkych
   obrazovkách neboli príliš natiahnuté do výšky (nadpisy/odstavce sa tam
   inak zalamujú do mnohých riadkov). */
.about-cards .benefit-card { padding: 22px 20px; }
.about-cards .benefit-card h3 {
  font-size: clamp(1rem, 3.6vw, 1.18rem);
  line-height: 1.2;
}
.about-cards .benefit-card p {
  font-size: clamp(0.82rem, 2.4vw, 0.92rem);
  line-height: 1.45;
}
@media (min-width: 900px) {
  .about-cards .benefit-card { padding: 24px 22px; }
  .about-cards .benefit-card h3 { font-size: 1.12rem; }
  .about-cards .benefit-card p { font-size: 0.9rem; }
}

/* Právne / textové podstránky (ochrana údajov) */
.legal h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-top: var(--em-sp-8);
  margin-bottom: var(--em-sp-3);
  color: var(--em-text-primary);
}
.legal p { margin-bottom: var(--em-sp-4); }
.legal .btn { margin-top: var(--em-sp-6); }

/* =========================================================================
   22. ENGITECH RESKIN — vizuálna zhoda s emlines.com (Montserrat, ostré rohy,
       akcent #009999, tmavé sekcie, counter band, product feature-rows)
   ========================================================================= */

/* --- Ostré rohy kariet (Engitech) ------------------------------------- */
.value-card, .info-card, .benefit-card, .product-card,
.stat-card, .note, .lead-form, .field input, .field textarea, .field select {
  border-radius: 0 !important;
}

/* =========================================================================
   CINEMATIC HERO — full-bleed obraz so zoomom (Ken Burns), prelínanie záberov
   a postupné „dopisovanie" nadpisu po slovách. Tmavé pozadie => svetlý text.
   ========================================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88svh;
  min-height: 88vh;               /* fallback pre prehliadače bez svh */
  padding-block: 132px 72px;
  overflow: hidden;
  background: var(--em-charcoal-dark);
  isolation: isolate;
}

/* --- Vrstva pozadia: stack prelínajúcich sa záberov ---------------------- */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
/* Parallax headroom: keď JS aktivuje hĺbku, pozadie má priestor na posun bez
   odhalenia okraja. Aktivuje sa LEN cez triedu .px-hero (pridá ju parallax.js). */
.px-hero .hero-bg { inset: -12% 0; will-change: transform; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--img-m);
  background-size: cover;
  background-position: center 42%;
  opacity: 0;
  transform: scale(1.04);
  /* Plynulý crossfade: prelína sa opacita aj mierka. Transform-transition zaistí,
     že keď sa záber deaktivuje a Ken Burns animácia sa odoberie, mierka sa NEvráti
     skokom na základ (príčina „preblikávania"), ale sa hladko dotransformuje. */
  transition: opacity 1.8s ease, transform 1.8s ease;
  /* will-change zámerne neaktivujeme natrvalo (šetrí GPU pamäť na slabších
     zariadeniach); transform/opacity sú aj tak kompozitné. */
}
@media (min-width: 768px) {
  .hero-slide { background-image: var(--img); }
}
.hero-slide.is-active {
  opacity: 1;
  will-change: transform;   /* len aktívny záber počas zoomu */
  /* Ken Burns: pomalý zoom + jemný posun, beží zakaždým, keď sa záber aktivuje */
  animation: hero-kenburns 9s ease-out forwards;
}
@keyframes hero-kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-1.2%, -1.4%, 0); }
}

/* --- Scrim: garantovaná čitateľnosť textu na ľubovoľnom (aj svetlom) zábere.
   Vrstva 1: plošný tmavý základ (~0.36) — drží kontrast bieleho textu nad WCAG.
   Vrstva 2/3: smerové gradienty pre hĺbku (tmavšie vľavo dole).
   Vrstva 4: jemný teal akcent. ----------------------------------------------- */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15,17,19,0.80) 0%, rgba(15,17,19,0.55) 42%, rgba(15,17,19,0.20) 74%, rgba(15,17,19,0.10) 100%),
    linear-gradient(0deg, rgba(15,17,19,0.74) 0%, rgba(15,17,19,0.12) 38%, rgba(15,17,19,0) 62%),
    linear-gradient(0deg, rgba(15,17,19,0.34), rgba(15,17,19,0.34)),
    radial-gradient(120% 90% at 18% 30%, rgba(0,153,153,0.18), transparent 55%);
}

/* --- Obsah ---------------------------------------------------------------- */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--em-container-max);
  margin-inline: auto;
  padding-inline: var(--em-container-pad);
}
/* Panel za textom bol odstránený — vytváral tvrdý vodorovný okraj boxu.
   Čitateľnosť textu teraz drží scrim (.hero-scrim) + jemný blur na celom
   zábere (.hero-slide) + text-shadow na nadpise a podnadpise. */

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--em-font-head);
  font-weight: 800;
  font-size: clamp(0.72rem, 1.4vw, 0.86rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5fd6d6;
  margin-bottom: var(--em-sp-5);
}
.hero-kicker::before {
  content: "";
  width: 30px; height: 2px;
  background: currentColor;
  display: inline-block;
}

/* Veľký nadpis – stack riadkov, každé slovo „vyjde" spod masky */
.hero-title {
  color: #fff;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin: 0 0 var(--em-sp-6);
  max-width: 20ch;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,0.32);
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;   /* aby diakritika nebola odrezaná maskou */
}
.hero-title .word {
  display: inline-block;
  transform: translateY(112%);
  opacity: 0;
}
.hero-title.is-in .word {
  animation: hero-word-rise 0.82s cubic-bezier(0.16, 0.84, 0.24, 1) both;
  animation-delay: calc(var(--wi) * 0.085s + 0.15s);
}
@keyframes hero-word-rise {
  from { transform: translateY(112%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1.55;
  max-width: 62ch;
  margin: 0 0 var(--em-sp-8);
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--em-sp-3);
  margin-top: var(--em-sp-7);
}
/* Sekundárne CTA na tmavom pozadí */
.btn-on-dark {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.btn-on-dark:hover { background: rgba(255,255,255,0.16); border-color: #fff; color: #fff; }

/* Postupné odhalenie kickera, podnadpisu, CTA a chips po nadpise */
.hero-kicker, .hero-sub, .hero-actions, .hero .trust-chips {
  opacity: 0;
  transform: translateY(16px);
}
.hero.is-in .hero-kicker,
.hero.is-in .hero-sub,
.hero.is-in .hero-actions,
.hero.is-in .trust-chips {
  animation: hero-fade-up 0.7s ease forwards;
}
.hero.is-in .hero-kicker  { animation-delay: 0.05s; }
.hero.is-in .hero-sub     { animation-delay: 0.55s; }
.hero.is-in .hero-actions { animation-delay: 0.7s; }
.hero.is-in .trust-chips  { animation-delay: 0.85s; }
@keyframes hero-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Trust chips na tmavom pozadí */
.hero .trust-chips { margin-top: var(--em-sp-8); }
.hero .trust-chips li {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  border-radius: var(--em-r-pill);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* --- Indikátory (dots) ---------------------------------------------------- */
.hero-dots {
  position: absolute;
  z-index: 3;
  left: var(--em-container-pad);
  bottom: 26px;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 30px; height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255,255,255,0.34);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.hero-dot:hover { background: rgba(255,255,255,0.6); }
.hero-dot.is-active { background: #5fd6d6; width: 46px; }

/* --- Scroll cue ----------------------------------------------------------- */
.hero-scroll {
  position: absolute;
  z-index: 3;
  right: var(--em-container-pad);
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.82);
  font-family: var(--em-font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
.hero-scroll:hover { color: #fff; }
.hero-scroll-ico {
  width: 22px; height: 34px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}
.hero-scroll-ico::after {
  content: "";
  position: absolute;
  left: 50%; top: 6px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: currentColor;
  animation: hero-scroll-dot 1.7s ease-in-out infinite;
}
@keyframes hero-scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  45%      { transform: translateY(10px); opacity: 1; }
}

/* Fallback bez JS: text aj prvý záber sú rovno viditeľné */
.no-js .hero-title .word,
.no-js .hero-kicker,
.no-js .hero-sub,
.no-js .hero-actions,
.no-js .hero .trust-chips {
  opacity: 1 !important;
  transform: none !important;
}

/* Reduced motion: žiadny zoom, žiadne „dopisovanie" — všetko rovno viditeľné */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transform: none !important; animation: none !important; }
  .hero-title .word,
  .hero-kicker, .hero-sub, .hero-actions, .hero .trust-chips {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero-scroll-ico::after { animation: none !important; }
}

/* Klávesnicová prístupnosť — viditeľný focus na ovládacích prvkoch hero */
.hero-dot:focus-visible,
.hero-scroll:focus-visible {
  outline: 3px solid #5fd6d6;
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- EDGE CASES: nízke / na šírku otočené displeje ------------------------
   Na nízkych viewportoch (krajina na telefóne, malé okná) nenútime 88vh —
   hero sa prispôsobí obsahu, aby nič nepretekalo a header nezakrýval text. */
@media (max-height: 700px) and (min-width: 768px) {
  .hero { min-height: 0; padding-block: 124px 72px; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .hero { min-height: 0; padding-block: 88px 48px; }
  .hero-scroll { display: none; }
  /* Na nízkych landscape displejoch (telefón naležato) by fixný sticky CTA
     pruh ukrojil príliš veľa z výšky a prekrýval obsah hero — skryjeme ho,
     inline CTA tlačidlá v hero ostávajú dostupné. */
  .sticky-cta { display: none; }
}

/* Na telefónoch (do 767px) skrývame scroll cue (vedie sticky CTA) a dvíhame
   indikátory nad spodný okraj, nech sa nekryjú so sticky CTA. */
@media (max-width: 767px) {
  .hero-scroll { display: none; }
  .hero-dots { bottom: 18px; }
  /* Mierne zmenšený nadpis na úzkych displejoch (lepšie zalomenie). */
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
}

/* Veľmi úzke displeje (≤360px) — istota, že sa najdlhšie slovo zmestí. */
@media (max-width: 360px) {
  .hero-title { font-size: clamp(2.1rem, 10.5vw, 2.8rem); }
}

/* Tlač: žiadne dekoratívne pozadie ani animované prvky. */
@media print {
  .hero { min-height: 0; background: #fff; padding-block: 8px; }
  .hero-bg, .hero-scrim, .hero-dots, .hero-scroll { display: none !important; }
  .hero-inner::before { display: none !important; }
  .hero-title, .hero-kicker, .hero-sub { color: #000 !important; text-shadow: none !important; }
  .hero .trust-chips li { color: #000; border-color: #888; background: none; }
}

/* --- COUNTER BAND (štatistiky ako na emlines.com) ---------------------- */
.about { background: var(--em-bg-light); }
.stat-grid { gap: var(--em-sp-6); }
.stat-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: var(--em-sp-4) var(--em-sp-3);
}
.stat-num {
  font-family: var(--em-font-head);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--em-accent);
}
.stat-label {
  font-family: var(--em-font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.82rem;
  color: var(--em-text-secondary);
}

/* --- PRODUCT FEATURE-ROWS (vzor emlines.com/intelligent-vehicle) ------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--em-sp-8);
  align-items: center;
}
.feature-row + .feature-row { margin-top: var(--em-sp-12); }
.feature-row .fr-media { margin: 0; position: relative; }
.feature-row .fr-media img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: var(--em-shadow-md);
}
.feature-row h2, .feature-row h3 {
  font-family: var(--em-font-head);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: var(--em-sp-4);
}
.feature-row .fr-text > p { color: var(--em-text-secondary); margin-bottom: var(--em-sp-5); }

/* Teal checkmark list (Engitech) */
.feat-list { display: grid; gap: var(--em-sp-3); }
.feat-list li {
  position: relative;
  padding-left: 34px;
  font-family: var(--em-font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--em-text-primary);
  line-height: 1.4;
}
.feat-list li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23009999' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* --- DARK „solution" sekcia (charcoal) --------------------------------- */
.section-dark {
  background: var(--em-charcoal-dark);
  color: rgba(255,255,255,0.74);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .product-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.74);
}
.section-dark .product-card h3 { color: #fff; }
.section-dark .product-card:hover { border-color: var(--em-accent); }

/* --- SCROLL REVEAL ----------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--em-ease), transform 0.6s var(--em-ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* --- Feature row na desktope (striedanie strán) ------------------------ */
@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--em-sp-11); }
  .feature-row.reverse .fr-media { order: 1; }
  .feature-row.reverse .fr-text { order: 2; }
}

/* Bez JS: žiadne skrývanie reveal blokov (progresívne vylepšenie) */
.no-js .reveal { opacity: 1 !important; transform: none !important; }

/* =========================================================================
   23. INTERAKCIE — hover micro-interactions, image zoom, nav underline
   ========================================================================= */

/* Navigačné odkazy — animovaný teal underline */
.nav-desktop a { position: relative; padding-block: 4px; }
.nav-desktop a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--em-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--em-dur-base) var(--em-ease);
}
.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after { transform: scaleX(1); }

/* Feature-row obrázok — jemný zoom pri hover */
.fr-media { overflow: hidden; border-radius: 2px; }
.fr-media img { transition: transform var(--em-dur-slow) var(--em-ease); }
.feature-row:hover .fr-media img { transform: scale(1.045); }

/* Galéria — override handled in section 11 base styles above */

/* Karty — zjednotený hover lift */
.value-card, .stat-card {
  transition: transform var(--em-dur-base) var(--em-ease),
              box-shadow var(--em-dur-base) var(--em-ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--em-shadow-md); }

/* Tlačidlo — jemný posun ikony/textu pri hover (popri zmene farby) */
.btn { transition: background var(--em-dur-base) var(--em-ease),
                   color var(--em-dur-base) var(--em-ease),
                   transform var(--em-dur-fast) var(--em-ease); }
.btn:active { transform: translateY(1px); }

/* Stagger pre reveal v mriežkach (nastaví main.js cez --d) */
.reveal { transition-delay: var(--d, 0s); }

/* Lightbox — plynulý nábeh */
.lightbox { opacity: 0; transition: opacity var(--em-dur-base) var(--em-ease); }
.lightbox.open, .lightbox:not([hidden]) { opacity: 1; }

/* =========================================================================
   24. Copy deck doplnky — pullquote, responsible (udržateľnosť/inklúzia)
   ========================================================================= */
.pullquote {
  max-width: 860px;
  margin: var(--em-sp-9) auto 0;
  padding: var(--em-sp-6) var(--em-sp-8);
  border-left: 4px solid var(--em-accent);
  background: var(--em-surface-alt);
  font-family: var(--em-font-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--em-text-primary);
}
.responsible { background: var(--em-page-bg); }

.responsible-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--em-sp-10);
  align-items: center;
}
@media (min-width: 860px) {
  .responsible-grid { grid-template-columns: 1fr 1fr; }
}

.responsible-copy .eyebrow { justify-content: flex-start; color: var(--em-teal); font-weight: 700; }
.responsible-copy h2 { color: var(--em-teal-700); margin-top: var(--em-sp-3); margin-bottom: var(--em-sp-5); }
.responsible-copy .lead { color: var(--em-text-secondary); }
.responsible-divider {
  border: none;
  border-top: 1px solid var(--em-border);
  margin: var(--em-sp-7) 0;
}
.responsible .check-list { margin-top: 0; }

.responsible-visual {
  border-radius: var(--em-r-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,102,102,0.12);
}
.responsible-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================================
   25. POINTER-REACTIVE MOTION — efekty sledujúce myš (triedy pridáva motion.js)
   Aktívne len na (pointer:fine) bez reduced-motion (gate je v motion.js).
   Hodnoty sú zámerne jemné: „žije", no nepôsobí gýčovo pre B2G publikum.
   ========================================================================= */

/* Časovanie tejto vrstvy (fade); samotné naháňanie kurzora rieši lerp v JS */
:root {
  --em-spot-fade: 300ms;            /* nábeh/zhasnutie spotlightu a sheenu */
  --em-glow-teal: rgba(0,153,153,0.14);
}

/* ---- 1. Spotlight: mäkká teal žiara pod kurzorom -------------------------
   ::after kreslí žiaru POD obsahom karty (obsah dostáva z-index:1).          */
.spot { position: relative; }
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: var(--spot, 0);
  transition: opacity var(--em-spot-fade) var(--em-ease);
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    var(--em-glow-teal), transparent 62%);
}
.spot > * { position: relative; z-index: 1; }
/* Na tmavom pozadí žiaru zvýrazni */
.section-dark .spot::after { --em-glow-teal: rgba(0,153,153,0.22); }

/* ---- 2. Magnetic: transform riadi JS → vyradíme ho z CSS prechodu -------- */
.magnetic {
  transition: background var(--em-dur-base) var(--em-ease),
              color var(--em-dur-base) var(--em-ease),
              box-shadow var(--em-dur-base) var(--em-ease);
  will-change: transform;
}

/* ---- 3. Tilt: 3D náklon za myšou (+ voliteľný svetelný sheen) ------------- */
.tilt {
  transform: perspective(1000px)
             rotateX(var(--rx, 0deg))
             rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-sheen { position: relative; }
.tilt-sheen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: var(--tilt-active, 0);
  transition: opacity var(--em-spot-fade) var(--em-ease);
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.28), transparent 60%);
  mix-blend-mode: soft-light;
}

/* ---- Poistka: pri reduced-motion celú vrstvu vypni ----------------------- */
@media (prefers-reduced-motion: reduce) {
  .spot::after, .tilt-sheen::after { opacity: 0 !important; }
  .tilt { transform: none !important; }
  .magnetic { transform: none !important; }
}

/* 25. Hero device-frame ako čistá produktová karta (biely render na tmavom hero) */
.hero .device-frame { background: #fff; border-color: rgba(255,255,255,0.2); padding: 16px; }
.hero .device-frame img { border-radius: 2px; }

/* =========================================================================
   26. Lenis — plynulé skrolovanie (companion CSS). Aktivuje sa len keď JS
   pridá triedu .lenis na <html>. Bez JS / pri reduced-motion ostáva
   natívny scroll a CSS scroll-behavior: smooth (riadok ~140).
   ========================================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Parallax vrstvy: GPU-akcelerované, pripravené na transformy zo ScrollTriggera */
.px-layer { will-change: transform; }

/* Parallax OBRÁZKOV vnútri overflow:hidden rámov (galéria, produktové figúry).
   Aktivuje sa LEN keď parallax.js pridá .px-on na <html>. Bez JS / reduced-motion
   ostávajú obrázky úplne nedotknuté (žiadne zväčšenie, žiadny orez).
   Použitý nezávislý 'translate' (parallax) + 'scale' (headroom) → neruší
   hover 'transform: scale()' na tých istých obrázkoch (vlastnosti sa skladajú). */
html.px-on .px-img {
  scale: 1.08;                       /* ~4 % headroom na každú stranu */
  translate: 0 var(--px-y, 0%);      /* parallax posun (≤ headroom → bez medzier) */
  will-change: transform;
}

/* =========================================================================
   27. CATEGORY CARDS — homepage #produkty section (2-up grid)
   ========================================================================= */

.cat-grid {
  grid-template-columns: 1fr;
  gap: var(--em-sp-7);
}
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--em-r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--em-dur-base) var(--em-ease),
              transform var(--em-dur-base) var(--em-ease);
}
.cat-card:hover {
  border-color: rgba(95,214,214,0.35);
  transform: translateY(-3px);
}

.cat-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.cat-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--em-ease);
}
.cat-card:hover .cat-card-img img {
  transform: scale(1.04);
}

.cat-card-body {
  padding: var(--em-sp-7) var(--em-sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--em-sp-4);
  flex: 1;
}
.cat-card-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--em-accent);
  margin: 0;
}
.cat-card-body h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.cat-card-body p {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* =========================================================================
   28. PRODUCT DETAIL PAGE — zastávky.html, infopointy.html
   ========================================================================= */

/* Two-column product layout: media | body */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--em-sp-9);
  align-items: center;
}
@media (min-width: 860px) {
  .product-detail-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--em-sp-10);
  }
  .product-detail-layout--reverse .product-detail-media { order: 2; }
  .product-detail-layout--reverse .product-detail-body  { order: 1; }
}

/* Media column */
.product-detail-media {
  border-radius: var(--em-r-lg);
  overflow: hidden;
}
.product-detail-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--em-r-lg);
}

/* Placeholder pre zatiaľ chýbajúce obrázky */
.product-img-placeholder {
  aspect-ratio: 4/3;
  background: var(--em-n-75);
  border: 2px dashed var(--em-border-strong);
  border-radius: var(--em-r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--em-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  padding: var(--em-sp-6);
}

/* Product number badge */
.product-detail-num {
  font-family: var(--em-font-head);
  font-size: 0.80rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--em-accent);
  text-transform: uppercase;
  margin-bottom: var(--em-sp-2);
}

/* Alternate section background */
.section--alt {
  background: var(--em-surface-alt);
}

/* Category eyebrow on heading */
.section-eyebrow {
  font-size: 0.80rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--em-accent);
  margin-bottom: var(--em-sp-3);
}
