/*
Theme Name: ELPE
Theme URI: https://elpe.cz
Description: Custom WordPress theme for ELPE s.r.o.
Author: stepandavid.cz
Author URI: https://stepandavid.cz
Version: 1.9.194
Text Domain: elpe
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  /* Brand */
  --red:       #E52329;
  --red-700:   #C41E24;
  --red-800:   #A81920;
  --navy:      #191E30;
  --navy-700:  #232A42;
  --blue:      #2C5AA6;
  --blue-600:  #244C8E;
  --blue-100:  #DCE6F5;
  --blue-50:   #ECF2FB;

  /* Greyscale */
  --g0:        #E4E5EC;
  --g1:        #E5E5E9;
  --g2:        #CCCDD6;
  --g3:        #B2B4C2;
  --g4:        #9A9CAE;
  --g5:        #7F839A;
  --white:     #FFFFFF;
  --black:     #0B0D14;
  --ink:       #191E30;
  --muted:     #5b6075;

  /* Surfaces */
  --surface:      #F5F5F8;
  --surface-warm: #F3F3F7;

  /* Layout */
  --maxw:      1320px;
  --section-pad: clamp(100px, 11vw, 160px);
  --r:         16px;
  --r-lg:      24px;
  --r-xl:      32px;

  /* Shadows — more refined */
  --shadow-sm: 0 1px 3px rgba(25,30,48,.05), 0 4px 12px rgba(25,30,48,.05);
  --shadow:    0 12px 36px rgba(25,30,48,.09), 0 2px 6px rgba(25,30,48,.05);
  --shadow-lg: 0 28px 72px rgba(25,30,48,.16);
  --shadow-xl: 0 48px 96px rgba(25,30,48,.22);

  --font-body:    'League Spartan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'League Gothic', 'League Spartan', sans-serif;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: .004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { margin: 0; }
::selection { background: var(--red); color: #fff; }

/* Display heading compression — League Gothic treatment */
.hero h1,
.about h2,
.shops__head h2,
.eshop__body h2,
.contact h2,
.scard__b h3,
.shop__b h3 {
  display: inline-block;
  transform: scaleX(.86);
  transform-origin: left center;
}
.svc__head h2,
.partners h2,
.support h2 {
  display: inline-block;
  transform: scaleX(.86);
  transform-origin: center;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.section { padding: var(--section-pad) 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 3.5vw, 52px); width: 100%; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--red);
}
.lead { font-size: 21px; line-height: 1.55; color: var(--muted); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  padding: 17px 32px;
  border-radius: 999px;
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease, color .2s ease;
  white-space: nowrap;
  text-transform: uppercase;
}
.btn .ti.ar { font-size: 15px; transition: transform .22s ease; }
.btn:hover .ti.ar { transform: translateX(5px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(229,35,41,.24); }
.btn--primary:hover { background: var(--red-700); box-shadow: 0 14px 32px rgba(229,35,41,.32); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-700); box-shadow: 0 8px 24px rgba(25,30,48,.24); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--g2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); background: transparent; }
.btn--white { background: #fff; }
.btn--sm { padding: 12px 22px; font-size: 12px; }

/* text link */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  transition: color .18s;
}
.tlink .ti { transition: transform .22s ease; }
.tlink:hover { color: #fff; }
.tlink:hover .ti { transform: translateX(5px); }

/* =========================================================
   LOGO
   ========================================================= */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
  color: var(--red);
}
.logo__svg { display: block; width: auto; color: inherit; fill: currentColor; }
.logo--light { color: #fff; }

/* =========================================================
   ICONS
   ========================================================= */
.ti { display: inline-flex; align-items: center; justify-content: center; line-height: 1; flex: none; }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1);
}
.reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transition: none; }
}

/* =========================================================
   NAVIGATION
   ========================================================= */
header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px clamp(20px, 3.5vw, 52px);
  transition: padding .3s cubic-bezier(.4,0,.2,1);
}
header.nav.scrolled { padding: 12px clamp(20px, 3.5vw, 52px); }

.nav__top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 auto 10px;
  padding: 0 16px;
  height: 22px;
  overflow: hidden;
  transition: height .3s ease, opacity .3s ease, margin .3s ease;
}
.nav__top a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
  transition: opacity .15s;
}
.nav__top a strong { font-weight: 800; color: #fff; }
.nav__top a:hover { opacity: .75; }
header.nav.scrolled .nav__top { height: 0; opacity: 0; margin-bottom: 0; }

.nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
  padding: 0 20px 0 28px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, height .3s ease;
}
header.nav.scrolled .nav__bar {
  height: 62px;
  background: rgba(14,17,28,.84);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 16px 48px rgba(8,10,18,.32), 0 1px 0 rgba(255,255,255,.04) inset;
}
.nav__logo { display: inline-flex; align-items: center; }

.nav__menu {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: .01em;
  color: rgba(255,255,255,.9);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav__link:hover { background: transparent; color: var(--red); }
.nav__link .chev { transition: transform .2s ease; display: inline-flex; opacity: .7; }
.nav__item.open .nav__link .chev { transform: rotate(180deg); }
.nav__item.open .nav__link { background: rgba(255,255,255,.1); color: #fff; }

.nav__spacer { flex: 1; }
.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.85);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 0 6px;
  white-space: nowrap;
  transition: color .15s;
}
.nav__phone:hover { color: var(--red); }

.nav__bar .btn {
  font-size: 14px;
}
.nav__bar .btn--ghost {
  color: rgba(255,255,255,.92);
  letter-spacing: .08em;
  background: transparent;
  box-shadow:
    0 2px 8px rgba(0,0,0,.10),
    inset  3px  3px .5px -3.5px rgba(255,255,255,.10),
    inset -3px -3px .5px -3.5px rgba(255,255,255,.82),
    inset  1px  1px  1px  -.5px rgba(255,255,255,.62),
    inset -1px -1px  1px  -.5px rgba(255,255,255,.62),
    inset  0    0   8px   8px   rgba(255,255,255,.09),
    inset  0    0   2px   2px   rgba(255,255,255,.05),
    0 0 14px rgba(0,0,0,.16);
  backdrop-filter: url('#liquid-glass') blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .28s ease, color .2s ease, transform .15s ease;
}
.nav__bar .btn--ghost:hover {
  color: #fff;
  box-shadow:
    0 2px 8px rgba(0,0,0,.12),
    inset  3px  3px .5px -3.5px rgba(255,255,255,.16),
    inset -3px -3px .5px -3.5px rgba(255,255,255,.96),
    inset  1px  1px  1px  -.5px rgba(255,255,255,.80),
    inset -1px -1px  1px  -.5px rgba(255,255,255,.80),
    inset  0    0   8px   8px   rgba(255,255,255,.14),
    inset  0    0   2px   2px   rgba(255,255,255,.08),
    0 0 20px rgba(0,0,0,.22);
}

/* Košík v e-shop tlačítku — červená a o ~25 % větší */
.btn__cart-icon {
  display: inline-flex;
  color: var(--red);
}
.btn__cart-icon svg { display: block; }

.drop {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  min-width: 260px;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 18px;
  box-shadow: var(--shadow-xl);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .18s ease, visibility .18s, transform .18s ease;
  z-index: 60;
}
.nav__item.open .drop { opacity: 1; visibility: visible; transform: none; }
.drop a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--navy);
  transition: background .12s, color .12s;
}
.drop a:hover { background: var(--surface); color: var(--red); }
.drop a .ti { opacity: 0; transform: translateX(-4px); transition: opacity .12s, transform .12s; color: var(--red); font-size: 13px; }
.drop a:hover .ti { opacity: 1; transform: none; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  transition: background .15s;
}
.burger:hover { background: rgba(255,255,255,.14); }
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: .2s;
}
.burger span::before { position: absolute; top: -5.5px; }
.burger span::after  { position: absolute; top: 5.5px; }

/* Mobile sheet */
.msheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11,13,20,.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s;
  backdrop-filter: blur(2px);
}
.msheet.show { opacity: 1; visibility: visible; }
.msheet__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(380px, 88vw);
  background: #fff;
  padding: 28px 28px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.msheet.show .msheet__panel { transform: none; }
.msheet__logo { color: var(--red); }
.msheet__panel h4 {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--g4);
  margin: 28px 0 10px;
}
.msheet__panel a:not(.btn) {
  display: block;
  padding: 11px 0;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--g1);
  color: var(--navy);
  transition: color .12s, padding-left .12s;
}
.msheet__panel a:not(.btn):hover { color: var(--red); padding-left: 4px; }
.msheet__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--navy);
  transition: background .15s;
}
.msheet__close:hover { background: var(--g1); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}
/* inset -20% nahoře/dole = rezerva pro parallax, aby nevznikla mezera */
.hero__bg { position: absolute; inset: -20% 0; z-index: -2; overflow: hidden; will-change: transform; }
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(108deg,
      rgba(11,13,20,.88) 0%,
      rgba(13,16,28,.72) 28%,
      rgba(13,16,28,.35) 58%,
      rgba(13,16,28,.08) 100%
    ),
    linear-gradient(270deg,
      rgba(11,13,20,.82) 0%,
      rgba(11,13,20,.55) 25%,
      rgba(11,13,20,0)   55%
    ),
    linear-gradient(180deg,
      rgba(11,13,20,.25) 0%,
      rgba(11,13,20,0) 30%,
      rgba(11,13,20,0) 52%,
      rgba(11,13,20,.75) 100%
    );
}
.hero__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 80% at 84% 10%, rgba(229,35,41,.18) 0%, transparent 55%);
  mix-blend-mode: screen;
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 60px clamp(20px, 3.5vw, 52px) 185px;
  display: grid;
  grid-template-columns: 1fr clamp(260px, 28vw, 380px);
  align-items: end;
  gap: 0 clamp(40px, 6vw, 110px);
}
.hero__main { min-width: 0; }
.hero .eyebrow { color: rgba(255,255,255,.7); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(62px, 8vw, 122px);
  line-height: 1.0;
  letter-spacing: .005em;
  color: #fff;
  margin: 0;
}
.hero h1 .hl { color: #fff; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}
.hero__sub {
  padding-bottom: 6px;
}
.hero__body {
  font-size: 16px;
  line-height: 1.72;
  color: rgba(212,215,226,1);
  font-weight: 400;
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid rgba(229,35,41,.38);
}
.hero .btn--ghost {
  color: rgba(255,255,255,.92);
  background: transparent;
  box-shadow:
    0 2px 10px rgba(0,0,0,.12),
    inset  3px  3px .5px -3.5px rgba(255,255,255,.10),
    inset -3px -3px .5px -3.5px rgba(255,255,255,.82),
    inset  1px  1px  1px  -.5px rgba(255,255,255,.62),
    inset -1px -1px  1px  -.5px rgba(255,255,255,.62),
    inset  0    0   8px   8px   rgba(255,255,255,.09),
    inset  0    0   2px   2px   rgba(255,255,255,.05),
    0 0 18px rgba(0,0,0,.18);
  backdrop-filter: url('#liquid-glass') blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow .28s ease, color .2s ease, transform .15s ease;
}
.hero .btn--ghost:hover {
  color: #fff;
  box-shadow:
    0 2px 10px rgba(0,0,0,.14),
    inset  3px  3px .5px -3.5px rgba(255,255,255,.16),
    inset -3px -3px .5px -3.5px rgba(255,255,255,.96),
    inset  1px  1px  1px  -.5px rgba(255,255,255,.80),
    inset -1px -1px  1px  -.5px rgba(255,255,255,.80),
    inset  0    0   8px   8px   rgba(255,255,255,.15),
    inset  0    0   2px   2px   rgba(255,255,255,.08),
    0 0 24px rgba(0,0,0,.22);
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.38);
  cursor: pointer;
  z-index: 2;
  transition: color .3s;
  background: none;
  border: none;
  padding: 0;
}
.hero__scroll:hover { color: rgba(255,255,255,.7); }

.hero__scroll-label {
  font-size: 9px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-body);
}

/* Elektrický vodič — jiskra cestuje dolů */
.hero__wire {
  display: block;
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,.15);
  position: relative;
  overflow: hidden;
}
.hero__wire::before {
  content: '';
  position: absolute;
  left: -1px;
  top: -28px;
  width: 3px;
  height: 28px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    transparent       0%,
    rgba(229,35,41,.5) 35%,
    rgba(255,255,255,.95) 65%,
    transparent       100%
  );
  animation: wire-spark 2.2s cubic-bezier(.4,0,.2,1) infinite;
}
/* Druhý průchod — kratší echo s delayem */
.hero__wire::after {
  content: '';
  position: absolute;
  left: 0;
  top: -14px;
  width: 1px;
  height: 14px;
  border-radius: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.3), transparent);
  animation: wire-spark 2.2s cubic-bezier(.4,0,.2,1) .9s infinite;
}

@keyframes wire-spark {
  0%   { transform: translateY(0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(84px); opacity: 0; }
}

/* =========================================================
   STAT BAND
   ========================================================= */
.statband { position: relative; z-index: 6; margin-top: -88px; padding: 0 clamp(20px, 3.5vw, 52px); }
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-spin {
  to { --angle: 360deg; }
}

.statcard {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  background: rgba(25, 30, 48, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
}

/* Elektrický oblouk — ostrý blesk + echo */
.statcard::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: conic-gradient(
    from var(--angle),
    /* ── Počátek — tma */
    transparent           0deg,

    /* ── Echo oblouk (180° za hlavním — odrazová vlna) */
    transparent         158deg,
    rgba(229,35,41,.04) 166deg,
    rgba(255,255,255,.18) 178deg,
    rgba(229,35,41,.04) 190deg,
    transparent         198deg,

    /* ── Hlavní blesk */
    transparent         330deg,
    rgba(229,35,41,.06) 340deg,   /* vzdálená corona */
    rgba(229,35,41,.28) 352deg,   /* přibližující se oblouk */
    rgba(255,160,140,.58) 356deg, /* rozžhavení */
    rgba(255,255,255,.96) 358deg, /* bílý spike — maximum */
    rgba(255,160,140,.58) 360deg  /* odtavení */
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-spin 3.5s linear infinite;
  filter: blur(0.5px); /* přirozená difúze světla */
  pointer-events: none;
  z-index: 2;
}

.statcell {
  position: relative;
  padding: 48px 36px 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: background .22s ease;
}
.statcell:hover { background: rgba(255,255,255,.04); }

@media (prefers-reduced-motion: reduce) {
  .statcard::before { animation: none; opacity: 0; }
}

.statcell__ic {
  display: flex;
  margin-bottom: 2px;
  color: var(--red);
}
.statcell__ic svg { width: 44px; height: 44px; }
.statcell .v {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: .92;
  color: #fff;
  letter-spacing: .01em;
  display: inline-block;
  transform: scaleX(.86);
  transform-origin: left;
  white-space: nowrap;
}
/* Textová hodnota místo čísla — menší font, zalomení, bez kondenzace */
.statcell .v.v--text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.02;
  letter-spacing: .01em;
  transform: none;
  white-space: nowrap;
  max-width: none;
}
.statcell .l {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(159,163,182,.8);
  max-width: 170px;
  font-weight: 400;
}

/* =========================================================
   SERVICES
   ========================================================= */
.svc__head { text-align: center; max-width: 720px; margin: 0 auto 24px; }
.svc__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 96px);
  line-height: .92;
  color: var(--navy);
  margin: 16px 0 0;
}
.svc__head p { margin: 20px auto 0; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 580px; }

.vmap {
  position: relative;
  margin: 52px auto 0;
  max-width: 1100px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,.06);
}
.vmap__img { width: 100%; display: block; aspect-ratio: 7653/4305; object-fit: cover; }
.vmap__hint {
  position: absolute;
  left: 20px;
  top: 18px;
  background: rgba(255,255,255,.94);
  padding: 9px 16px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 9px;
  align-items: center;
  z-index: 4;
}
.vmap__hint .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pls 1.8s infinite;
}
@keyframes pls {
  0%   { box-shadow: 0 0 0 0 rgba(229,35,41,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(229,35,41,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,35,41,0); }
}

.hot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  box-shadow: 0 4px 16px rgba(229,35,41,.5);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s, box-shadow .2s;
  z-index: 3;
}
.hot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  opacity: .45;
  animation: hp 2.6s infinite;
}
@keyframes hp {
  0%   { transform: scale(.7); opacity: .5; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { opacity: 0; }
}
.hot b { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.hot:hover,
.hot.on {
  background: var(--navy);
  transform: translate(-50%, -50%) scale(1.22);
  box-shadow: 0 6px 20px rgba(25,30,48,.4);
  z-index: 5;
}
.hot:hover::after, .hot.on::after { border-color: var(--navy); }
.hot__tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--navy);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  box-shadow: var(--shadow);
}
.hot__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy);
}
.hot:hover .hot__tip,
.hot.on .hot__tip { opacity: 1; transform: translateX(-50%); }

/* ── SVG interactive illustration ─────────────────────────── */
.vmap--svg {
  /* Vesnice na plnou šířku wrapu = stejně široká jako grid karet (#sluzby = 1544 → obsah ~1440) */
  max-width: none;
  width: 100%;
  margin-inline: auto;
  border-radius: 0;
  box-shadow: none;
  border: none;
  overflow: visible;
  background: none;
}
.vmap__svg {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG overlay groups — hidden by default, shown on active hotspot */
.svg-ov {
  display: none;
  pointer-events: none;
}
.svg-ov.svg-ov--on { display: block; }

/* Dark scrim — uniform dim; lit groups are re-stacked above it by JS */
/* Designer layer overrides — VN svod je v originále 6px, sjednotit s ostatním vedením */
#ov-trafostanice .tf-18 {
  stroke-width: 3px;
}

#ov-scrim {
  transition: opacity .35s ease;
}
.vmap--svg.is-active #ov-scrim {
  opacity: .94;
}

/* ── Hotspot button ── */
.vhot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.vhot__dot {
  position: relative;
  z-index: 2;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(229,35,41,.22);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.vhot__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(229,35,41,.55);
  animation: vhp 2.6s ease-out infinite;
}
@keyframes vhp {
  0%   { transform: scale(.5); opacity: .7; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
.vhot:hover .vhot__dot,
.vhot:focus-visible .vhot__dot {
  transform: scale(1.45);
  box-shadow: 0 0 0 5px rgba(229,35,41,.28);
}

/* ── Label pill ── */
.vhot__label {
  position: absolute;
  pointer-events: none;
  white-space: nowrap;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 18px 7px;
  border-radius: 8px;
  opacity: 0;
  z-index: 20;
  box-shadow: 0 4px 14px rgba(11,13,20,.35);
  transition: opacity .16s ease, transform .16s ease;
}
/* Arrow on label */
.vhot__label::after {
  content: "";
  position: absolute;
  border: 6px solid transparent;
}

/* Position variants */
.vhot[data-pos="top"] .vhot__label {
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
}
.vhot[data-pos="top"] .vhot__label::after {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: var(--red);
}
.vhot[data-pos="bottom"] .vhot__label {
  top: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
}
.vhot[data-pos="bottom"] .vhot__label::after {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: var(--red);
}
.vhot[data-pos="right"] .vhot__label {
  left: calc(100% + 9px);
  top: 50%;
  transform: translateY(-50%) translateX(-5px);
}
.vhot[data-pos="right"] .vhot__label::after {
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-right-color: var(--red);
}
.vhot[data-pos="left"] .vhot__label {
  right: calc(100% + 9px);
  top: 50%;
  transform: translateY(-50%) translateX(5px);
}
.vhot[data-pos="left"] .vhot__label::after {
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-left-color: var(--red);
}

/* Show label on hover */
.vhot:hover .vhot__label,
.vhot:focus-visible .vhot__label {
  opacity: 1;
}
.vhot:hover[data-pos="top"] .vhot__label    { transform: translateX(-50%) translateY(0); }
.vhot:hover[data-pos="bottom"] .vhot__label { transform: translateX(-50%) translateY(0); }
.vhot:hover[data-pos="right"] .vhot__label  { transform: translateY(-50%) translateX(0); }
.vhot:hover[data-pos="left"] .vhot__label   { transform: translateY(-50%) translateX(0); }

/* Nedokončené hotspoty (bez data-overlay) — klientská ukázka: na hover nic.
   Tečka + pulzující kroužek zůstávají, ale label nevyjíždí a tečka neroste.
   Až bude služba hotová a dostane data-overlay, hover efekt se zapne sám. */
.vhot:not([data-overlay]) { cursor: default; }
.vhot:not([data-overlay]):hover .vhot__dot,
.vhot:not([data-overlay]):focus-visible .vhot__dot {
  transform: none;
  box-shadow: 0 0 0 3px rgba(229,35,41,.22);
}
.vhot:not([data-overlay]):hover .vhot__label,
.vhot:not([data-overlay]):focus-visible .vhot__label {
  opacity: 0;
}

/* Mobile — hide hotspots on small screens */
@media (max-width: 640px) {
  .vhot { display: none; }
  .vmap--svg { overflow: hidden; border-radius: 16px; }
}

/* Služby + obchody — širší container na velkých monitorech, cap 1840 px
   (premium „wow", ale karty na ultrawide nebobtnají). Na 1920 → 1840,
   na 2560+ cap 1840 s velkými okraji, níž škáluje přes 96vw. */
#sluzby > .wrap,
#obchody > .wrap { max-width: min(1840px, 96vw); }

.svc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px; }
.scard {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  transition: transform .38s cubic-bezier(.22,1,.36,1), box-shadow .38s ease;
  box-shadow: 0 2px 12px rgba(11,13,20,.1);
}
.scard:hover {
  box-shadow: 0 32px 64px -16px rgba(11,13,20,.28), 0 6px 16px -6px rgba(11,13,20,.14);
}
.scard.on {
  box-shadow: 0 0 0 2px var(--red), 0 20px 48px -12px rgba(229,35,41,.2);
  transform: translateY(-6px);
}

/* ── Fotka */
.scard__img { position: absolute; inset: 0; overflow: hidden; }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.scard:hover .scard__img img { transform: scale(1.08); }
#scard-1 .scard__img img { object-position: 55% 30%; transform: scale(1.28); }
#scard-1:hover .scard__img img { transform: scale(1.36); }

/* ── Diagonální šipka — žádný box, čistý symbol */
.scard__go {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(5px, -5px);
  transition: opacity .3s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
.scard__go .ti {
  font-size: 26px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
  transition: color .2s ease;
}
.scard__go-label { display: none; }

.scard:hover .scard__go {
  opacity: 1;
  transform: none;
}
.scard:hover .scard__go .ti {
  color: var(--red);
}

/* ── Gradient — stejný jako karty obchody */
.scard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(11,13,20,.8));
  z-index: 1;
  pointer-events: none;
  transition: background .4s ease;
}
/* Při hoveru se rozbalí popisek výš přes fotku — ztmavíme scrim,
   ať je bílý text čitelný i přes světlé části fotek. */
.scard:hover::after {
  background: linear-gradient(180deg, rgba(11,13,20,.30) 0%, rgba(11,13,20,.62) 45%, rgba(11,13,20,.94) 100%);
}

/* ── Obsah */
.scard__b {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 26px 26px;
  z-index: 2;
  color: #fff;
}
.scard__b h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: #fff;
  margin: 0;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.scard:hover .scard__b h3 {
  transform: translateY(-6px);
}

/* Grid-rows trick — plynulá animace výšky bez max-height jankiness */
.scard__reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.22,1,.36,1);
}
.scard__reveal > div {
  overflow: hidden;
  padding-top: 0;
  transition: padding-top .45s cubic-bezier(.22,1,.36,1);
}
.scard:hover .scard__reveal {
  grid-template-rows: 1fr;
}
.scard:hover .scard__reveal > div {
  padding-top: 12px;
}

.scard__b p {
  font-size: 16px;
  line-height: 1.58;
  color: rgba(255,255,255,.82);
  margin: 0 0 12px;
  opacity: 0;
  transition: opacity .3s ease .15s;
}
.scard:hover .scard__b p { opacity: 1; }

.scard__b .tlink {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--g2); /* plná světle šedá #CCCDD6 — bez průhlednosti, AA kontrast na tmavém scrimu */
  opacity: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .3s ease .22s, color .2s;
}
.scard:hover .scard__b .tlink { opacity: 1; }
.scard__b .tlink:hover { color: #fff; }

/* Dotykové zařízení — bez hoveru, vše vždy viditelné */
@media (hover: none) {
  .scard__reveal {
    grid-template-rows: 1fr;
  }
  .scard__reveal > div {
    padding-top: 12px;
  }
  .scard__b p,
  .scard__b .tlink {
    opacity: 1;
  }
  .scard__go {
    background: var(--red);
    color: #fff;
    border-color: transparent;
  }
}
.svc__all { display: flex; justify-content: center; margin-top: 52px; }
.svc__all .btn { min-width: 360px; height: 76px; padding-block: 0; }

/* =========================================================
   SHOPS
   ========================================================= */
.shops { background: var(--surface); }
.shops__head {
  display: grid;
  grid-template-columns: .6fr 1.4fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 52px;
}
.shops__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(50px, 6.2vw, 84px);
  line-height: .92;
  color: var(--navy);
  margin: 16px 0 0;
}
.shops__head p { font-size: 17px; line-height: 1.72; color: var(--muted); margin: 0; padding-top: 4px; }

.shopgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.shop {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease;
  box-shadow: var(--shadow-sm);
}
.shop:hover { box-shadow: var(--shadow-lg); }
.shop img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.shop:hover img { transform: scale(1.06); }
.shop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(11,13,20,.8));
}
.shop__b { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 2; color: #fff; }
.shop__b h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  margin: 0;
}
.shop__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,.9); /* pin + název + šipka jednotně výrazné (tenký pin/text při .65 působil slaběji než plný glyf šipky) */
  margin-top: 7px;
}
.shop__loc .ti-map-pin {
  transform: translateY(-1.5px); /* optický střed vůči textu (glyf pinu sedí níž) */
}
.shop__loc .ar {
  font-size: 15px;
  margin-left: -1px; /* přiblížit k slovu (ruší gap) */
  transition: transform .22s ease;
}
.shop:hover .shop__loc .ar { transform: translateX(4px); }
.shop__go {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(5px, -5px);
  transition: opacity .3s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
.shop__go .ti {
  font-size: 26px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
  transition: color .2s ease;
}
.shop:hover .shop__go {
  opacity: 1;
  transform: none;
}
.shop:hover .shop__go .ti {
  color: var(--red);
}

/* =========================================================
   ESHOP BAND
   ========================================================= */
/* Karta: thumb | body | cta na jednom řádku, fotka na pozadí */
.eshop__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  --epad: clamp(32px, 4vw, 64px);
  --epad-y: clamp(22px, 2.4vw, 38px);
  gap: clamp(28px, 3.5vw, 56px);
  padding: var(--epad-y) var(--epad);
  border-radius: 32px;
  overflow: hidden;
  color: #fff;
  /* Živý vícevrstvý gradient z naší --red; pod textem tmavší (bílá ≥5.8:1, prakticky AAA ~7-9:1) */
  background:
    radial-gradient(95% 115% at 90% 6%, rgba(229,35,41,.92), transparent 48%),   /* jasná --red energie vpravo nahoře */
    radial-gradient(80% 110% at 4% 98%, rgba(25,30,48,.55), transparent 54%),     /* firemní navy hloubka vlevo dole */
    conic-gradient(from 210deg at 76% 24%, rgba(255,255,255,.10), transparent 26%),/* jemný diagonální lesk */
    linear-gradient(135deg, #A81920 0%, #8E1116 60%, #6F0E13 100%);              /* tmavý červený podklad */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 40px 90px -34px color-mix(in srgb, var(--blue-100) 80%, transparent);
}
/* Fotka přes celý pruh + tmavě-červený scrim vlevo (text čitelný, fotka prosvítá vpravo) */
.eshop__bgphoto {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    /* ztmavení pravého okraje za CTA — čitelnost červeného tlačítka */
    linear-gradient(270deg,
      rgba(0,0,0,.72) 0%,
      rgba(0,0,0,.34) 15%,
      rgba(0,0,0,0) 34%),
    /* hlavní scrim zleva pro text */
    linear-gradient(100deg,
      rgba(0,0,0,.92) 0%,
      rgba(0,0,0,.78) 30%,
      rgba(0,0,0,.34) 56%,
      rgba(0,0,0,.04) 82%),
    var(--bg);
  background-size: auto, auto, cover;
  background-position: center, center, center;
  pointer-events: none;
}
.eshop__inner > :not(.eshop__bgphoto) { position: relative; z-index: 1; }
.eshop__body { flex: 1 1 auto; min-width: 0; max-width: 620px; }
.eshop { position: relative; overflow: hidden; }
.eshop .wrap { position: relative; }
.eshop__body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0;
}
.eshop__body p { font-size: 16px; line-height: 1.55; margin: 12px 0 0; max-width: 540px; color: #fff; }
.eshop__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  font-weight: 600;
  font-size: 15.5px;
  color: #fff;
}
.eshop__stars { display: flex; gap: 2px; }
/* Loga platforem pod hvězdičkami — bílá mono na červené */
.eshop__platforms { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; }
.eshop__platforms a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.eshop__platforms a:hover,
.eshop__platforms a:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.06); }
.eshop__platforms img { height: var(--lh, 18px); width: auto; display: block; }
/* CTA tlačítko vpravo — bílé na červené, hover navy */
.eshop__cta {
  flex: 0 0 auto;
  margin-left: auto;
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 32px -12px rgba(0,0,0,.45);
}
.eshop__cta:hover { background: var(--navy); color: #fff; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { position: relative; background: var(--navy); color: #fff; overflow: clip; }
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 90% at 85% 0%, rgba(44,90,166,.20), transparent 58%),
    radial-gradient(100% 80% at 0% 100%, rgba(229,35,41,.10), transparent 60%),
    linear-gradient(155deg, #20263f 0%, var(--navy) 52%, #14182a 100%);
  z-index: 0;
  pointer-events: none;
}
.about > .wrap { position: relative; z-index: 1; }
.about__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: start; }
.about__intro { position: sticky; top: 96px; align-self: start; }
.about h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(50px, 6.2vw, 84px);
  line-height: .92;
  margin: 18px 0 0;
}
.about p { font-size: 17px; line-height: 1.72; color: rgba(188,191,206,.85); margin: 24px 0 0; }
.about__eyebrow { color: rgba(255,255,255,.5); }
.about__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 40px 0 36px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 38%, rgba(255,255,255,0) 72%),
    rgba(25, 30, 48, 0.55);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 30px 64px rgba(0,0,0,.36);
}
/* Elektrický oblouk — stejný jako hero StatBand */
.about__stats::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: conic-gradient(
    from var(--angle),
    transparent           0deg,
    transparent         158deg,
    rgba(229,35,41,.04) 166deg,
    rgba(255,255,255,.18) 178deg,
    rgba(229,35,41,.04) 190deg,
    transparent         198deg,
    transparent         330deg,
    rgba(229,35,41,.06) 340deg,
    rgba(229,35,41,.28) 352deg,
    rgba(255,160,140,.58) 356deg,
    rgba(255,255,255,.96) 358deg,
    rgba(255,160,140,.58) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-spin 3.5s linear infinite;
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 2;
}
.about__stats > div {
  position: relative;
  padding: 34px 22px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: background .22s ease;
}
.about__stats > div:hover { background: rgba(255,255,255,.04); }
.about__stats-ic {
  display: flex;
  margin-bottom: 2px;
  color: var(--red);
}
.about__stats .v {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: .92;
  color: #fff;
  letter-spacing: .01em;
  display: inline-block;
  transform: scaleX(.86);
  transform-origin: left;
  white-space: nowrap;
}
.about__stats .l {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(159,163,182,.8);
  max-width: 160px;
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  .about__stats::before { animation: none; opacity: 0; }
}
/* Scrollovací galerie 3 vysokých fotek (pravý sloupec) */
.about__gallery { display: grid; gap: 28px; }
.about__shot {
  position: relative;
  margin: 0;
  height: 780px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 36px 72px rgba(0,0,0,.42);
}
.about__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Team sphere (CPT Zaměstnanci — pro budoucí stránku Kontakty) ---- */
.sphere {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1;
  touch-action: none;
  cursor: grab;
}
.sphere.is-grabbing { cursor: grabbing; }
.sphere__node {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, opacity, width, height;
  box-shadow: 0 10px 26px rgba(0,0,0,.42);
  outline: 1.5px solid rgba(255,255,255,.16);
  outline-offset: -1.5px;
  transition: box-shadow .2s ease;
}
.sphere__node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.sphere__node:hover { box-shadow: 0 10px 30px rgba(229,35,41,.45); }
.sphere__node:hover img { transform: scale(1.12); }
.sphere__node--demo { cursor: grab; }
.sphere__node:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---- Sphere modal ---- */
.sphere-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10,12,20,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: sm-fade .25s ease-out;
}
.sphere-modal[hidden] { display: none; }
.sphere-modal__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--navy);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.55);
  outline: 1px solid rgba(255,255,255,.08);
  animation: sm-scale .25s ease-out;
}
.sphere-modal__media { aspect-ratio: 4/3; overflow: hidden; }
.sphere-modal__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sphere-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(10,12,20,.55);
  color: #fff; font-size: 18px; cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s ease;
}
.sphere-modal__close:hover { background: var(--red); }
.sphere-modal__body { padding: 24px 26px 28px; color: #fff; }
.sphere-modal__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  margin: 0;
}
.sphere-modal__funkce {
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  margin: 8px 0 0;
}
.sphere-modal__contact { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0; }
.sphere-modal__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(212,215,226,.92);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.sphere-modal__contact a:hover { color: #fff; }
.sphere-modal__contact i { color: var(--red); font-size: 18px; }
.sphere-modal__popis { color: rgba(188,191,206,.85); line-height: 1.6; font-size: 14px; margin: 16px 0 0; }
.sphere-modal__popis[hidden] { display: none; }
@keyframes sm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sm-scale { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sphere-modal, .sphere-modal__card { animation: none; }
}
.about .btn--white {
  color: rgba(255,255,255,.92);
  background: transparent;
  box-shadow:
    0 2px 10px rgba(0,0,0,.12),
    inset  3px  3px .5px -3.5px rgba(255,255,255,.10),
    inset -3px -3px .5px -3.5px rgba(255,255,255,.82),
    inset  1px  1px  1px  -.5px rgba(255,255,255,.62),
    inset -1px -1px  1px  -.5px rgba(255,255,255,.62),
    inset  0    0   8px   8px   rgba(255,255,255,.09),
    inset  0    0   2px   2px   rgba(255,255,255,.05),
    0 0 18px rgba(0,0,0,.18);
  backdrop-filter: url('#liquid-glass') blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow .28s ease, color .2s ease, transform .15s ease;
}
.about .btn--white:hover {
  color: #fff;
  background: transparent;
  box-shadow:
    0 2px 10px rgba(0,0,0,.14),
    inset  3px  3px .5px -3.5px rgba(255,255,255,.16),
    inset -3px -3px .5px -3.5px rgba(255,255,255,.96),
    inset  1px  1px  1px  -.5px rgba(255,255,255,.80),
    inset -1px -1px  1px  -.5px rgba(255,255,255,.80),
    inset  0    0   8px   8px   rgba(255,255,255,.15),
    inset  0    0   2px   2px   rgba(255,255,255,.08),
    0 0 24px rgba(0,0,0,.22);
}

/* =========================================================
   PARTNERS
   ========================================================= */
.partners {
  /* Bílá shora (za nadpisem a logy) plynule přechází dolů do šedé plochy,
     která navazuje na sekci KONTAKT. */
  background: linear-gradient(180deg,
    var(--white)   0%,
    var(--white)  46%,
    var(--surface) 100%);
  padding: clamp(96px, 13vh, 168px) 0;  /* vzdušnější na výšku */
  text-align: center;
  position: relative;
}
.partners h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  color: var(--navy);
  margin: 0 0 clamp(48px, 6vh, 80px);
}
/* Wrapper řeší overflow-x — nelze mít overflow-x:hidden + overflow-y:visible na
   jednom elementu (spec je změní oba na hidden/auto). Wrapper ořízne horizontálně,
   .plogos samotný je overflow:visible → loga nejsou oříznutá shora/zdola. */
.plogos-clip {
  overflow-x: hidden;
}
.plogos {
  --mg: 96px;
  position: relative;
  display: flex;
  gap: var(--mg);
  overflow: visible;
  user-select: none;
  padding: 16px 0 20px;
}
.plogos:hover .plogos__group {
  animation-play-state: paused;
}
.plogos__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--mg);
  min-width: 100%;                  /* každá skupina pokryje celý viewport */
  animation: plogos-scroll 20s linear infinite;
}
@keyframes plogos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - var(--mg))); }
}
.plogo-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  outline-offset: 6px;
}
.plogo {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.plogo-link:hover .plogo {
  transform: scale(1.12);
}
/* Progressive blur krajů — pouze levý a pravý okraj */
.pblur {
  position: absolute;
  top: 0; bottom: 0;
  width: 180px;
  pointer-events: none;
  z-index: 2;
}
.pblur--l { left: 0; }
.pblur--r { right: 0; }
.pblur > div { position: absolute; inset: 0; }
@media (prefers-reduced-motion: reduce) {
  .plogos__group { animation: none; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--surface); position: relative; overflow: clip; padding-bottom: 0; }
/* Formulář + intro nad 3D marquee (marquee se zasouvá pod ně) */
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; position: relative; z-index: 2; }
.contact__intro { position: sticky; top: 104px; }
.contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(50px, 6.2vw, 84px);
  line-height: .92;
  color: var(--navy);
  margin: 16px 0 0;
}
.contact__sub { font-size: 17px; line-height: 1.65; color: var(--muted); margin: 22px 0 32px; max-width: 420px; }
.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 24px 16px 16px;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  color: var(--navy);
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease;
}
.contact__phone:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.contact__phone .ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 6px 16px rgba(229,35,41,.28);
}
.contact__phone-txt { display: flex; flex-direction: column; }
.contact__phone small {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--g5);
  margin-bottom: 2px;
}
.contact__phone strong { font-size: 19px; font-weight: 700; color: var(--navy); transition: color .18s; }
.contact__phone:hover strong { color: var(--red); }

.form { background: #fff; border-radius: 22px; padding: 40px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: .03em;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 14px 18px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input:hover, .field textarea:hover { background: var(--g1); }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,35,41,.1);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--g5);
  margin: 6px 0 20px;
  cursor: pointer;
}
.form__consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form__consent-box {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--g3);
  border-radius: 7px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.form__consent-box svg { opacity: 0; transform: scale(.6); transition: opacity .16s ease, transform .16s ease; }
.form__consent:hover .form__consent-box { border-color: var(--red); }
.form__consent input:checked + .form__consent-box { background: var(--red); border-color: var(--red); }
.form__consent input:checked + .form__consent-box svg { opacity: 1; transform: scale(1); }
.form__consent input:focus-visible + .form__consent-box { outline: 2px solid var(--red); outline-offset: 2px; }
.form__consent.is-invalid .form__consent-box { border-color: var(--red); animation: consent-shake .32s ease; }
.form__consent-txt a { color: var(--red); text-decoration: underline; }
@keyframes consent-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .form__consent.is-invalid .form__consent-box { animation: none; }
}
.form .btn { width: 100%; justify-content: center; }
.form__ok {
  display: none;
  align-items: center;
  gap: 10px;
  background: #e8f5ee;
  color: #1a6e35;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
}
.form__ok.show { display: flex; }
.form__err {
  display: none;
  align-items: center;
  gap: 10px;
  background: #fdecea;
  color: var(--red-700);
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
}
.form__err.show { display: flex; }

/* ── 3D Marquee (Aceternity, vanilla port) — galerie realizací ─────
   Velký nakloněný plán (rotateX/rotateZ), 4 sloupce driftující nahoru
   a dolů v protisměru, ořezané do full-bleed okna. */
.marquee3d {
  --m3d-gap:   clamp(18px, 1.8vw, 34px);
  position: relative;
  z-index: 1;                                 /* pod formulářem             */
  width: 100vw;
  margin-left: calc(50% - 50vw);              /* full-bleed přes celý web   */
  /* Lehký posun nahoru → horní (vyfadovaná) hrana se jen mírně zasune pod
     kontaktní formulář (prémiový layer, nadpis zůstává nad čistou plochou) */
  margin-top: calc(clamp(48px, 6vw, 96px) - 220px);
  height: clamp(460px, 46vw, 720px);
  overflow: hidden;
  perspective: 1600px;
  /* Plynulý, dlouhý fade seshora (víc kroků = bez tvrdé hrany) */
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,0,0,.05) 10%,
    rgba(0,0,0,.25) 22%,
    rgba(0,0,0,.6) 34%,
    rgba(0,0,0,.9) 46%,
    #000 56%, #000 100%);
          mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,0,0,.05) 10%,
    rgba(0,0,0,.25) 22%,
    rgba(0,0,0,.6) 34%,
    rgba(0,0,0,.9) 46%,
    #000 56%, #000 100%);
}
.marquee3d__plane {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Vždy širší než viewport → nakloněný plán vyplní celou obrazovku */
  width: max(2000px, 165vw);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--m3d-gap);
  transform-style: preserve-3d;
  /* Mírnější rotateZ → diagonála líp vyplní širokou obrazovku (bez mezery
     vpravo); rotateX drží 3D hloubku. */
  transform:
    translate(-50%, -50%)
    rotateX(52deg) rotateZ(-28deg);
}
.marquee3d__col {
  display: flex;
  flex-direction: column;
  gap: var(--m3d-gap);
  animation: m3d-drift-up 18s ease-in-out infinite alternate;
  /* Sloupce nesou 3D hloubku → karty se mohou na hover „vysunout“
     směrem k divákovi (translateZ) bez cukání. */
  transform-style: preserve-3d;
  will-change: transform;
}
.marquee3d__col:nth-child(even) {
  animation-name: m3d-drift-down;
  animation-duration: 24s;
}
@keyframes m3d-drift-up {
  from { transform: translateY(3.5%); }
  to   { transform: translateY(-8%); }
}
@keyframes m3d-drift-down {
  from { transform: translateY(-8%); }
  to   { transform: translateY(3.5%); }
}
.marquee3d__card {
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--g1);
  box-shadow:
    inset 0 0 0 1px rgba(25,30,48,.06),
    0 18px 40px -20px rgba(25,30,48,.5);
  transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s ease;
  will-change: transform;
}
.marquee3d__card img {
  display: block;
  width: 100%;
  aspect-ratio: 970 / 700;
  object-fit: cover;
}
.marquee3d__card:hover {
  /* Vysunutí po normále nakloněného plánu k divákovi — střed zůstává pod
     kurzorem, takže hover nikdy „nepropadne“ (žádné cukání). */
  transform: translateZ(70px) scale(1.04);
  box-shadow:
    inset 0 0 0 1px rgba(25,30,48,.1),
    0 40px 70px -28px rgba(25,30,48,.6);
}
@media (prefers-reduced-motion: reduce) {
  .marquee3d__col { animation: none; }
  .marquee3d__card { transition: none; }
  .marquee3d__card:hover { transform: none; }
}
/* Tablet — kratší okno, plán o něco menší */
@media (max-width: 860px) {
  .marquee3d { height: clamp(400px, 54vw, 520px); }
  .marquee3d__plane { width: max(1500px, 200vw); }
}
/* Mobil — plošší náklon, plán pořád přes celou šíři */
@media (max-width: 600px) {
  .marquee3d { height: 440px; perspective: 1200px; }
  .marquee3d__plane {
    width: max(1100px, 260vw);
    transform: translate(-50%, -50%) rotateX(50deg) rotateZ(-26deg);
  }
}

/* =========================================================
   SUPPORT
   ========================================================= */
.support { text-align: center; }
.support h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 5.4vw, 72px);
  color: var(--navy);
  margin: 16px 0 0;
}
.support p { font-size: 18px; color: var(--muted); margin: 16px 0 0; }

/* Loga — carousel se šipkami. Scroll-snap viewport, šipky po stranách.
   Funguje pro libovolný počet log; dokud se vejdou, track se centruje
   a šipky se schovají (řídí JS přes .is-static). */
.support__carousel {
  --cg: clamp(48px, 4.6vw, 96px); /* mezera mezi logy — větší = vzdušnější, méně viditelných (~8) */
  margin: clamp(44px, 6vw, 72px) auto 0;
  max-width: min(1840px, 96vw);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 28px);
}
/* Reference: 3 řady pod sebou, bez šipek, střídavý směr driftu (řídí JS). */
.support__rows {
  margin: clamp(44px, 6vw, 72px) auto 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 40px);
}
.support__rows .support__carousel {
  margin: 0;
  width: 100%;
}
.support__nav {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--navy) 22%, transparent);
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  font-size: 22px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
}
.support__nav:hover,
.support__nav:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.support__nav:disabled {
  opacity: .25;
  pointer-events: none;
}
.support__carousel.is-static .support__nav { display: none; }
.support__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab; /* drag-to-scroll: chytni a projeď loga */
  /* Jemný fade na okrajích naznačuje pokračování obsahu */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.support__carousel.is-static .support__viewport { cursor: default; }
.support__carousel.is-dragging { user-select: none; }
.support__carousel.is-dragging .support__viewport { cursor: grabbing; }
/* Při tažení nesmí prohlížeč chytat nativní drag obrázku ani odkazu —
   jinak by uchopení přímo za logo spustilo „drag" místo scrollu. */
.support__viewport .support__logo,
.support__viewport .support__logo img {
  -webkit-user-drag: none;
  user-select: none;
}
.support__carousel.is-static .support__viewport {
  -webkit-mask-image: none;
  mask-image: none;
}
.support__viewport::-webkit-scrollbar { display: none; }
.support__viewport:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 6px;
  border-radius: 8px;
}
.support__track {
  display: flex;
  align-items: center;
  gap: var(--cg);
  width: max-content;
  margin-inline: auto; /* málo log → vycentrováno */
  padding: 6px clamp(12px, 2vw, 32px);
}
.support__group {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--cg);
}
/* Duplikát sady je potřeba jen pro nekonečnou smyčku */
.support__carousel:not(.is-loop) .support__group[aria-hidden] { display: none; }
/* Plynulý drift se nesnese se snapem */
.support__carousel.is-loop .support__viewport { scroll-snap-type: none; }
/* Loga v přirozené šířce — nic se neořezává. */
.support__item {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  scroll-snap-align: center;
}
.support__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 84px;
}
.support__logo img {
  /* Pevná výška + auto šířka — SVG s pouhým viewBox (bez intrinsic rozměrů)
     by jinak kolabovalo na 0×0. Šířka se dopočítá z poměru stran viewBoxu.
     --logo-scale dovolí opticky doladit jednotlivá „těžká" loga (níže). */
  --logo-scale: 1;
  height: calc(clamp(40px, 4.2vw, 60px) * var(--logo-scale));
  width: auto;
  /* Strop na šířku zkrotí ultraširoké wordmarky (conteg, rimowa, spokar…),
     aby opticky nepřebíjely kompaktnější loga. object-fit drží poměr. */
  max-width: clamp(150px, 16vw, 205px);
  object-fit: contain;
  /* Loga barevná v plné sytosti (žádný grayscale). */
  transition: transform .35s cubic-bezier(.22,.61,.36,1), filter .35s ease;
}
/* Opticky „velká"/tučná loga — sjednotit dolů (~80 %), ať sedí k ostatním. */
.support__logo img[src*="conteg"],
.support__logo img[src*="agrodam"],
.support__logo img[src*="strabag"] {
  --logo-scale: .8;
}
/* Hover/fokus: jemný lift + scale + měkký stín ve tvaru loga — barva zůstává. */
.support__logo:hover img,
.support__logo:focus-visible img,
a.support__logo:hover img,
a.support__logo:focus-visible img {
  transform: translateY(-5px) scale(1.06);
  filter: drop-shadow(0 8px 16px rgba(25,30,48,.16));
}
/* Invert vypnut (uživatel si bílá loga řeší ručně). Třída .support__logo--invert
   se může stále vyskytovat v markupu, ale je bez efektu — hover lift/scale/stín
   na tato loga platí přes obecné pravidlo .support__logo:hover výše. */

/* Sbory dobrovolných hasičů — textové položky uvnitř carouselu, za logy */
.support__sdh-item {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.2;
  color: var(--navy);
  opacity: .6;
}
/* Tablet/mobil — o něco menší rozestupy/loga. */
@media (max-width: 860px) {
  .support__nav { width: 42px; height: 42px; font-size: 18px; }
  .support__carousel { --cg: clamp(30px, 6vw, 56px); }
  .support__logo { min-height: 64px; }
  .support__logo img {
    height: calc(clamp(34px, 7vw, 50px) * var(--logo-scale));
    max-width: clamp(120px, 42vw, 170px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .support__logo img { transition: none; }
  .support__logo:hover img,
  a.support__logo:hover img { transform: none; }
}

/* =========================================================
   FOOTER
   ========================================================= */
footer.ft { position: relative; background: var(--navy); color: #cfd2de; padding: clamp(72px, 8vw, 96px) 0 0; overflow: hidden; }
/* Jemný motiv elektro-ikon (icons-overlays.svg) u spodní hrany patičky —
   opakovaný vodorovně 2× (50 % šířky = 2 větší dlaždice), shora plynule
   vyfadovaný do barvy pozadí přes mask-gradient (žádná tvrdá horní hrana). */
.ft::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 300px;
  background: url(assets/overlays/icons-overlays.svg) repeat-x center bottom;
  background-size: 50% auto;
  opacity: .028;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to top, #000 12%, transparent 75%);
          mask-image: linear-gradient(to top, #000 12%, transparent 75%);
}
/* Obsah nad vzorem */
.ft > .wrap { position: relative; z-index: 1; }
/* Obsah patičky v „hero" containeru 1480px — stejný tier jako
   .hero__inner / .refhero__inner; drží container systém. */
.ft > .wrap { max-width: 1480px; }
/* Logo v patičce — červená brand varianta (SVG dědí currentColor) */
.ft .logo--light { color: var(--red); }
.ft__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 56px clamp(40px, 4vw, 64px);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ft__desc { font-size: 16px; line-height: 1.7; color: #A8ADBF; margin: 24px 0 0; max-width: 360px; }
/* Recenzní karta — hvězdy, skóre a loga platforem v jednom bloku */
.ft__rating {
  max-width: 360px;
  margin-top: 28px;
}
.ft__rating-head { display: flex; align-items: center; gap: 14px; }
.ft__rating-score { font-size: 40px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: .005em; }
.ft__rating .rstars { font-size: 17px; }
/* Částečně vyplněné hvězdy — plná vrstva oříznutá přes overflow nad obrysovou */
.rstars { position: relative; display: inline-block; line-height: 1; }
.rstars__base, .rstars__fill { white-space: nowrap; color: inherit; }
.rstars__base i, .rstars__fill i { display: inline-block; }
.rstars__base i + i, .rstars__fill i + i { margin-left: 2px; }
.rstars__fill { position: absolute; top: 0; left: 0; overflow: hidden; }
.ft__rating-num { display: flex; flex-direction: column; gap: 3px; line-height: 1.25; }
/* Jen přímý textový span — ať pravidlo nepřebije zlatou na vnořených .rstars vrstvách */
.ft__rating-num > span { font-size: 13px; line-height: 1.45; color: #A8ADBF; }
/* Řádek spokojenosti se zeleným check */
.ft__rating-sat { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; font-size: 14px; color: #cfd2de; }
.ft__check { display: inline-flex; color: #3DBE78; }
.ft__check svg { display: block; }
/* Štítek nad logy platforem — z log se stává ověřitelný zdroj */
.ft__rating-verified {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #7C8197;
}
.ft__stars { display: flex; gap: 2px; color: var(--red); }
/* Nadpisy bílé (bez podtržítka) */
.ft h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 22px;
}
.ft__col a { display: block; font-size: 16px; line-height: 1.35; color: #A8ADBF; padding: 6px 0; transition: color .15s, transform .15s; }
.ft__col a:hover { color: #fff; transform: translateX(3px); }
/* Služby v jednom sloupci (patička bude vyšší — záměr) */
.ft__cols2 a { break-inside: avoid; }
.ft__loc { margin-bottom: 28px; }
.ft__loc b { color: #fff; font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ft__loc div { font-size: 15px; line-height: 1.65; color: #A8ADBF; }
/* Adresa (→ Google Maps) a telefon (→ tel:) jako odkazy — vzhled jako .ft__loc div,
   přebíjí .ft__col a (display:block/16px/padding/translateX). */
.ft__col a.ft__loc-link {
  display: block;
  width: fit-content;
  font-size: 15px;
  line-height: 1.65;
  color: #A8ADBF;
  padding: 0;
}
.ft__col a.ft__loc-link:hover { color: var(--red); transform: none; }
/* .ft__col a nastavuje display:block — pro flexové odkazy přebijeme specificitou,
   jinak se align-items:center neuplatní a ikony sedí mimo střed textu. */
.ft__col a.ft__email,
.ft__col a.ft__cta { display: flex; width: fit-content; padding: 0; }
.ft__email { align-items: center; gap: 9px; color: #D2D5DF; font-weight: 500; margin-top: 16px; font-size: 16px; line-height: 1; transition: color .15s; }
.ft__email svg, .ft__cta .ar svg, .ft__loc b svg { display: block; }
.ft__email:hover { color: var(--red); }
/* Hodnoticí platformy (Google, Heuréka, Zboží, Firmy) — jeden řádek, bílá mono */
.ft__ratlogos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 11px;
}
.ft__ratlogos a { display: inline-flex; }
.ft__ratlogos img {
  height: var(--lh, 13px);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .8;
  transition: opacity .2s ease;
}
.ft__ratlogos a:hover img,
.ft__ratlogos a:focus-visible img { opacity: .95; }
/* Sociální sítě pod hodnocením — čisté vyplněné ikony bez rámečku, vzdušné mezery */
.ft__social { display: flex; align-items: center; gap: 32px; margin-top: 28px; }
.ft__social a {
  display: inline-flex;
  color: var(--red);
  line-height: 1;
  transition: color .2s ease, transform .2s ease;
}
.ft__social a:hover,
.ft__social a:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}
/* SVG ikony (Tabler, stroke 1.0 — konzistentní s trust barem) */
.ft__social a svg { display: block; }
.ft__pin { display: inline-flex; color: var(--red); }
.ft__email svg { color: var(--red); flex: none; }
.ft__cta .ar { display: inline-flex; color: var(--red); }
.ft__cta:hover .ar { color: inherit; }
/* CTA odkaz pod sloupcem */
.ft__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  transition: color .15s;
}
.ft__cta:hover { color: var(--red); }
.ft__cta .ar { transition: transform .2s ease; }
.ft__cta:hover .ar { transform: translateX(3px); }
/* Vedoucí ikona u CTA (košík u e-shopu) — vždy červená */
.ft__cta-ic { display: inline-flex; color: var(--red); }
.ft__cta-ic svg { display: block; }
.ft__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.08); }
.ft__bottom a { font-size: 12.5px; color: #A8ADBF; transition: color .12s; }
.ft__bottom a:hover { color: #fff; }
.ft__bsep { flex: 1; }
.ft__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 24px 0 40px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 12.5px;
  color: #9499AD;
}
.ft__legal a { color: #9499AD; transition: color .12s; }
.ft__legal a:hover { color: #fff; }
/* Autorský podpis — „Tvorba webu Pelhřimov" + logo stepandavid.cz.
   Decentní v klidu; na hover ožije zelený brand accent loga + jemné nadzvednutí. */
.ft__author { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.ft__author-made { font-size: 12.5px; color: #7C8197; transition: color .25s ease; }
.ft__author-logo {
  height: 16px;
  width: auto;
  display: block;
  opacity: .5;
  filter: grayscale(1);
  transition: opacity .3s ease, filter .3s ease, transform .3s ease;
}
.ft__author:hover .ft__author-logo,
.ft__author:focus-visible .ft__author-logo {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-1px);
}
.ft__author:hover .ft__author-made,
.ft__author:focus-visible .ft__author-made { color: #B6BAC9; }
@media (prefers-reduced-motion: reduce) {
  .ft__author:hover .ft__author-logo { transform: none; }
}

/* =========================================================
   ZPĚT NAHORU — globální, objeví se po 50 % stránky
   ========================================================= */
.backtotop {
  position: fixed;
  right: clamp(16px, 2.4vw, 34px);
  bottom: clamp(16px, 2.4vw, 34px);
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease, border-color .2s ease;
}
.backtotop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.backtotop:hover,
.backtotop:focus-visible { background: var(--red); border-color: var(--red); }
.backtotop svg { display: block; }
@media (prefers-reduced-motion: reduce) {
  .backtotop { transition: opacity .2s ease; transform: none; }
  .backtotop.is-visible { transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1120px) {
  .nav__menu { display: none; }
  .burger { display: none; } /* DOČASNĚ skryté mobilní menu (klientská ukázka). Pro návrat: display: flex; */
  .nav__phone { display: none; }
}
@media (max-width: 1080px) {
  .statcard { grid-template-columns: repeat(3, 1fr); }
  .statcell { border-top: 1px solid rgba(0,0,0,.07); }
  .statcard > .statcell:nth-child(-n+3) { border-top: none; }
  .about__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero { align-items: center; }
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 140px clamp(20px, 3.5vw, 52px) 100px;
  }
  .hero__sub { margin-top: 36px; padding-bottom: 0; }
  .hero__scroll { display: none; }
  .svc__grid { grid-template-columns: repeat(2, 1fr); }
  .hot { width: 26px; height: 26px; }
  .shops__head { grid-template-columns: 1fr; gap: 20px; }
  .shopgrid { grid-template-columns: repeat(2, 1fr); }
  .eshop__inner { flex-direction: column; align-items: flex-start; }
  .eshop__bgphoto {
    background:
      linear-gradient(180deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.78) 55%, rgba(0,0,0,.72) 100%),
      var(--bg);
    background-size: auto, cover;
  }
  .eshop__body { max-width: none; }
  .eshop__cta { align-self: stretch; justify-content: center; margin-left: 0; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__intro { position: static; top: auto; }
  .about__shot { height: 560px; }
  .about__gallery { gap: 22px; }
  .sphere { max-width: 540px; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__intro { position: static; top: auto; }
  /* Stacked layout je vysoký — posun nahoru vypnut, marquee zůstává pod formem */
  .marquee3d { margin-top: clamp(40px, 8vw, 72px); }
  .ft__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
/* Nízké viewporty (MacBook Air 13" apod.): hero s min-height:100vh by
   vytlačil StatBand pod fold. Zastropujeme výšku hera podle výšky okna,
   ať se trust bar vejde do prvního výřezu. Jen desktop layout (≥981px),
   pod tím se hero restrukturalizuje vlastním breakpointem. */
@media (min-width: 981px) and (max-height: 820px) {
  .hero { min-height: clamp(540px, 78vh, 720px); }
  .hero__inner { padding-bottom: clamp(120px, 22vh, 185px); }
}
@media (max-width: 680px) {
  .statband { margin-top: -56px; }
  .statcard { grid-template-columns: repeat(2, 1fr); }
  .statcard > .statcell:nth-child(-n+3) { border-top: 1px solid rgba(0,0,0,.07); }
  .statcard > .statcell:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 600px) {
  header.nav { padding: 14px 16px; }
  .nav__bar { padding: 0 12px 0 16px; gap: 8px; height: 60px; }
  .nav__cta .btn--ghost { display: none; }
  .svc__grid { grid-template-columns: 1fr; }
  .scard, .shop { height: 340px; }
  .hot { width: 22px; height: 22px; }
  .hot b { width: 8px; height: 8px; }
  .shopgrid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: repeat(2, 1fr); }
  .about__shot { height: 440px; }
  .sphere { max-width: 440px; }
  .eshop__inner { padding: 32px 22px; gap: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .ft__top { grid-template-columns: 1fr; }
  .form { padding: 28px 22px; }
}
@media (max-width: 440px) {
  .statcard { grid-template-columns: 1fr; }
  .statcard > .statcell { border-top: 1px solid rgba(0,0,0,.07); }
  .statcard > .statcell:first-child { border-top: none; }
}

/* =========================================================
   REFERENCE / REALIZACE (page-reference.php)
   ========================================================= */
.ref { overflow: clip; }

/* ---- Hero ---- */
.refhero {
  padding: clamp(150px, 18vh, 220px) 0 clamp(60px, 7vw, 110px);
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
}

/* ---- Drobečková navigace ---- */
.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.crumbs__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}
.crumbs__ico {
  display: inline-flex;
  color: currentColor;
  opacity: .75;
  transition: opacity .2s ease;
}
.crumbs__ico svg { display: block; transform: translateY(-1px); }
.crumbs__txt {
  position: relative;
}
.crumbs__txt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.crumbs__link:hover { color: var(--red); }
.crumbs__link:hover .crumbs__ico { opacity: 1; }
.crumbs__link:hover .crumbs__txt::after { transform: scaleX(1); }
.crumbs__sep {
  display: inline-flex;
  color: var(--muted);
  opacity: .4;
}
.crumbs__sep svg { display: block; transform: translateY(-1px); }
.crumbs__current { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .crumbs__txt::after { transition: none; }
}
.refhero__inner {
  max-width: 1480px;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
}
.refhero__top {
  display: grid;
  grid-template-columns: 1fr clamp(260px, 28vw, 380px);
  align-items: end;
  gap: clamp(40px, 6vw, 110px);
}
.refhero__aside { align-self: start; }
.refhero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 7vw, 104px);
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--navy);
  margin: 18px 0 0;
}
.refhero__lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}
.refhero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.refhero__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  /* 16:9 místo extrémně širokého 1480/600 → fotky 4:3 se ořežou výrazně méně */
  aspect-ratio: 16 / 9;
}
.refhero__slides { position: absolute; inset: 0; overflow: hidden; }
.refhero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.3s ease, transform 1.3s ease;
  will-change: opacity, transform;
}
/* Aktivní snímek = pomalý zoom + jemný posun (Ken Burns), zatímco se prolíná */
.refhero__slide.is-active {
  opacity: 1;
  animation: ref-kenburns 7s ease-out forwards;
}
.refhero__slide.is-active:nth-child(even) { animation-name: ref-kenburns-alt; }
@keyframes ref-kenburns {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.03) translate(-0.5%, -0.4%); }
}
@keyframes ref-kenburns-alt {
  from { transform: scale(1.03) translate(0.45%, 0.3%); }
  to   { transform: scale(1.0) translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .refhero__slide { transform: none; transition: none; }
  .refhero__slide.is-active { animation: none; }
}
.refhero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.refhero__badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 22px;
  border-radius: var(--r);
  background: rgba(25,30,48,.78);
  backdrop-filter: blur(10px);
  color: #fff;
  max-width: 60%;
}
.refhero__badge strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  color: #fff;
}
.refhero__badge span { font-size: 13px; line-height: 1.3; color: rgba(255,255,255,.78); }

/* ---- Proč spolupracovat (full-bleed světlý luxusní gradient) ---- */
.refwhy {
  position: relative;
  z-index: 0;
  padding-top: clamp(48px, 5vw, 80px);
  /* Menší mezera mezi boxy a nadpisem další sekce (cca −50 %). */
  padding-bottom: clamp(50px, 5.5vw, 80px);
  background:
    radial-gradient(58% 46% at 16% 50%, rgba(44,90,166,.06) 0%, transparent 72%),
    radial-gradient(52% 44% at 90% 56%, rgba(229,35,41,.04) 0%, transparent 72%),
    linear-gradient(180deg,
      #FFFFFF 0%,
      #F6F9FD 26%,
      #F3F7FC 50%,
      #F6F9FD 74%,
      #FFFFFF 100%);
}
/* Dekorativní „E" znaky v bočních pruzích (hairline outline, à la Moneta).
   Vrstva je za obsahem (.wrap), nad pozadím sekce. Horizontální přesah ořezává
   .ref { overflow: clip } na úrovni stránky → znaky vertikálně neořízne. */
.refwhy__marks,
.ref-grid__marks {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.refwhy .wrap,
.ref-grid .wrap { position: relative; z-index: 1; }
.refwhy__mark {
  position: absolute;
  width: clamp(420px, 42vw, 760px);
  opacity: 1;
}
.refwhy__mark .refwhy__e { display: block; width: 100%; height: auto; }
/* Pravý znak (blesk) je úzký a vysoký → vlastní šířka; míň posunutý mimo okraj, ať je vidět.
   Bílá silueta na bílém pozadí sekce → jemný stín ji odlepí (bolt je jednoduchý tvar → stín rovnoměrný). */
.ref-grid__mark--right {
  top: -6%;
  right: 0;
  width: clamp(240px, 24vw, 400px);
  transform: translate(18%, 0) rotate(-18deg);
  filter: drop-shadow(0 6px 18px rgba(44, 90, 166, .12));
}
/* Na užších viewportech by znaky zasahovaly do obsahu — schováme je. */
@media (max-width: 1100px) {
  .refwhy__marks,
  .ref-grid__marks { display: none; }
}
.refwhy__h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(50px, 6.2vw, 84px);
  line-height: 1;
  color: var(--navy);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.refwhy__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.2vw, 32px);
}
.benefit {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 2.4vw, 36px);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 1px 3px rgba(25,30,48,.05), 0 12px 30px rgba(25,30,48,.10);
}
/* Velká ikona uříznutá vpravo — světlý brand akcent, oživení boxu.
   Výška navázaná na výšku karty (top/bottom) → ikona vyplní skoro celou výšku
   a roste s kartou; bleeduje za pravý okraj. */
.benefit__bg {
  position: absolute;
  top: 7%;
  bottom: 7%;
  right: -104px;
  color: var(--g1);
  line-height: 0;
  pointer-events: none;
  z-index: 0;
  transform-origin: center;
  /* Hover „ožije" — extra plynulé, jen ikona, karta stojí */
  transition: transform .7s cubic-bezier(.4, 0, .2, 1), color .6s ease;
  will-change: transform;
}
.benefit__bg svg { height: 100%; width: auto; }
.benefit:hover .benefit__bg {
  transform: scale(1.06) rotate(-4deg);
  color: var(--g2);
}
@media (prefers-reduced-motion: reduce) {
  .benefit__bg { transition: none; }
  .benefit:hover .benefit__bg { transform: none; }
}
.benefit__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 18px;
}
.benefit__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 8px;
}
.benefit__text { position: relative; z-index: 1; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 78%; }

/* ---- Výběr realizací (grid + filtr) ---- */
.ref-grid { position: relative; z-index: 0; scroll-margin-top: 120px; background: var(--white); padding: clamp(60px, 7vw, 100px) 0 clamp(120px, 13vw, 200px); }
.ref-grid__head { max-width: 880px; margin-bottom: clamp(28px, 3vw, 48px); }
.ref-grid__h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(50px, 6.2vw, 84px);
  line-height: 1.02;
  color: var(--navy);
  margin-bottom: 22px;
}
.ref-grid__sub { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 60ch; }

.ref-grid__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(40px, 4.5vw, 68px);
}
.ref-chip {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: normal;
  padding: 13px 24px;
  border-radius: 12px;
  color: var(--navy);
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--g2);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.ref-chip:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.ref-chip.is-active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(229,35,41,.22);
}

.ref-grid__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 3.2vw, 52px);
}
.rcard {
  background: transparent;
  transition: transform .35s ease, opacity .35s ease;
}
.rcard.is-hidden { display: none; }
.rcard:hover { transform: translateY(-5px); }
.rcard__figure { position: relative; }
/* Náznak galerie: druhá fotka srovnaná pod obálkou a lehce odsunutá dolů (stoh snímků) */
.rcard__peek {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  transform: translate(8px, 8px) rotate(1.5deg);
  transform-origin: bottom center;
  box-shadow: 0 10px 24px rgba(25,30,48,.16);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.rcard__peek img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.9) saturate(.9); }
.rcard:hover .rcard__peek { transform: translate(11px, 11px) rotate(2.5deg); }
.rcard--has-gallery .rcard__media { position: relative; z-index: 1; }
.rcard__media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(25,30,48,.06), 0 16px 38px rgba(25,30,48,.12);
  transition: box-shadow .3s ease;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.rcard__media--static { cursor: default; }
.rcard:hover .rcard__media {
  box-shadow: 0 2px 6px rgba(25,30,48,.08), 0 26px 54px rgba(25,30,48,.18);
}
.rcard__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.rcard:hover .rcard__media img { transform: scale(1.05); }

/* Ztmavení + hint na hover/focus obrázku s galerií */
.rcard__media[data-gallery]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,17,28,0);
  transition: background .2s ease;
  z-index: 1;
}
.rcard__media[data-gallery]:hover::after,
.rcard__media[data-gallery]:focus-visible::after { background: rgba(20,17,28,.2); }
.rcard__count {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20,17,28,.72);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  pointer-events: none;
}
.rcard__count .ti { font-size: 15px; color: var(--red); }
.rcard__zoom {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.94);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.rcard__zoom .ti { font-size: 17px; color: var(--red); }
.rcard__media[data-gallery]:hover .rcard__zoom,
.rcard__media[data-gallery]:focus-visible .rcard__zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---- Lightbox galerie ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  background: rgba(20,17,28,.94);
  padding: clamp(14px, 2.5vw, 26px);
}
.lightbox.is-open { display: flex; }
.lightbox__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; margin-bottom: 14px; }
.lightbox__titles { min-width: 0; }
.lightbox__eyebrow { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); }
.lightbox__title { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__tools { display: flex; align-items: center; gap: 14px; flex: none; }
.lightbox__counter { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__btn .ti { font-size: 22px; }
.lightbox__stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; user-select: none; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; background: var(--red); }
.lightbox__nav--next:hover { background: var(--red-700); }
.lightbox__thumbs { display: flex; gap: 8px; justify-content: center; overflow-x: auto; margin-top: 12px; padding-bottom: 2px; }
.lightbox__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  border: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: .55;
  outline: 2.5px solid transparent;
  outline-offset: 1px;
  transition: opacity .15s ease;
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__thumb.is-active { opacity: 1; outline-color: var(--red); }
.lightbox__hint { text-align: center; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); letter-spacing: .04em; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .rcard__zoom, .lightbox__btn, .lightbox__thumb, .rcard__peek { transition: none; }
}
@media (max-width: 640px) {
  .lightbox__hint { display: none; }
  .lightbox__thumb { width: 56px; height: 42px; }
}
.rcard__body { position: relative; padding: 22px 4px 0; }
.rcard__cat {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color .18s ease;
}
a.rcard__cat:hover { color: var(--red); }
.rcard__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(22px, 1.6vw, 26px);
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 8px;
}
.rcard__text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.rcard__meta {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--g5);
}
/* CTA = .tlink, ale na světlé kartě → brand červená (default tlink je bílý pro tmavou sekci) */
.rcard__cta { margin-top: 18px; color: var(--red); }
.rcard__cta:hover { color: var(--red-700); }

/* ---- Důvěřují nám (nadpis i loga = stejné jako homepage „Podporujeme") ---- */
.reflogos { padding-bottom: clamp(48px, 5vw, 80px); background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 42%); text-align: center; }
.reflogos__h2 {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 5.4vw, 72px);
  color: var(--navy);
  margin: 16px 0 0;
  transform: scaleX(.86);
  transform-origin: center;
}

/* =========================================================
   Důvěřují nám — VARIANTA v2 (loga v bílých boxech + marquee,
   à la upmind.com). Stačí přidat třídu .reflogos--v2 na sekci.
   ========================================================= */
.reflogos--v2 {
  /* Jemný světlý podklad v celé výšce → bílé boxy „vyskočí". */
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--surface) 100%);
  /* Symetrický vertikální rytmus: stejná mezera nad nadpisem i pod logy. */
  padding: clamp(72px, 8vw, 120px) 0;
}
/* Bez extra horního marginu → horní mezera = čistý padding sekce (= dolní). */
.reflogos--v2 .reflogos__h2 { margin-top: 0; }
.reflogos--v2 .support__rows {
  margin-top: clamp(32px, 4vw, 56px);
  /* Vertikální mezera mezi řádky = 2×7px track padding-block (viz níže) + 0
     flex gap = 14px → shodná s vodorovnou mezerou log (--cg: 14px). */
  gap: 0;
}
/* Logo-zeď bez scroll-reveal fade — ten držel opacitu <1, takže loga působila
   poloprůhledně a barva vypadala světlejší než plné #CCCDD6. Marquee pohyb stačí. */
.reflogos--v2 .support__rows.reveal { opacity: 1 !important; transform: none !important; }
.reflogos--v2 .support__carousel { --cg: 14px; }   /* těsnější rozestup boxů */
.reflogos--v2 .support__track { padding-block: 7px; }   /* prostor pro hover lift (-4px); 2×7=14px = --cg */
/* Okrajový fade řad (maska jako upmind). */
.reflogos--v2 .support__viewport {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
}
/* Logo i textová položka = bílý box. */
.reflogos--v2 .support__logo,
.reflogos--v2 .support__sdh-item {
  box-sizing: border-box;
  width: clamp(170px, 19vw, 216px);
  min-height: clamp(84px, 9vw, 104px);
  padding: 18px 26px;
  background: var(--white);
  border-radius: 12px;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
/* Loga monochromaticky v brand modré (zachová kresbu i u rastrů); barva se vrátí na hover. */
.reflogos--v2 .support__logo img {
  height: clamp(26px, 2.8vw, 38px);
  max-width: 100%;
  filter: url(#elpe-mono-blue);
  transition: filter .35s ease, opacity .35s ease;
}
/* Hover: box se zvedne, logo dostane zpět barvu. */
.reflogos--v2 .support__logo:hover,
.reflogos--v2 a.support__logo:hover,
.reflogos--v2 .support__logo:focus-visible {
  transform: translateY(-4px);
}
.reflogos--v2 .support__logo:hover img,
.reflogos--v2 a.support__logo:hover img,
.reflogos--v2 .support__logo:focus-visible img {
  filter: none;
  opacity: 1;
  transform: none;        /* lift řeší box, ne obrázek */
}
/* Textová položka (klient bez loga) v boxu. */
.reflogos--v2 .support__sdh-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: clamp(18px, 1.8vw, 26px);
  color: var(--g3); /* #B2B4C2 = barva log (duotón #elpe-mono-blue) — sjednoceno */
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .reflogos--v2 .support__logo,
  .reflogos--v2 .support__logo img { transition: none; }
}

/* ---- CTA banner ---- */
/* Horní mezera odlepí banner od pruhu s logy nad ním. */
.refcta {
  position: relative;
  padding-top: clamp(72px, 9vw, 132px);
  padding-bottom: clamp(80px, 9vw, 140px);
}
/* Dekorativní elektro ikony v pozadí pruhu (jemné, za kartou — karta má
   plné pozadí + overflow:hidden, takže překryje ikony pod sebou; viditelné
   zůstanou jen v okolním prostoru, hlavně v horní mezeře). */
.refcta__deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.refcta__sym {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  color: var(--navy);
  opacity: .06;
}
.refcta__sym svg { display: block; }
.refcta .wrap { position: relative; z-index: 1; }
.refcta__inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  /* Stejná výška jako e-shop pruh na homepage — sdílené padding tokeny */
  --epad: clamp(32px, 4vw, 64px);
  --epad-y: clamp(22px, 2.4vw, 38px);
  gap: clamp(28px, 4vw, 56px);
  padding: var(--epad-y) var(--epad);
  /* Stejná výška jako e-shop pruh na homepage (.eshop__inner). E-shop má víc
     obsahu → vyšší; tady dorovnáme min-výškou, obsah se vycentruje (flex). */
  min-height: clamp(220px, 22vw, 272px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(44,90,166,.4) 0%, transparent 55%),
    radial-gradient(120% 160% at 0% 100%, rgba(229,35,41,.32) 0%, transparent 55%),
    linear-gradient(120deg, #20263f 0%, var(--navy) 55%, #14182a 100%);
  box-shadow: var(--shadow-lg);
}
/* Fotka přes celý pruh + scrim zleva (text) a vpravo (CTA) — jako e-shop band */
.refcta__bgphoto {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(270deg,
      rgba(0,0,0,.72) 0%,
      rgba(0,0,0,.34) 15%,
      rgba(0,0,0,0) 34%),
    linear-gradient(100deg,
      rgba(20,24,42,.94) 0%,
      rgba(20,24,42,.8) 30%,
      rgba(20,24,42,.36) 56%,
      rgba(20,24,42,.06) 82%),
    var(--bg);
  background-size: auto, auto, cover;
  background-position: center, center, center;
  pointer-events: none;
}
.refcta__inner > :not(.refcta__bgphoto) { position: relative; z-index: 1; }
.refcta__h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 60px);
  line-height: .98;
  color: #fff;
  margin: 14px 0 12px;
}
.refcta__text { font-size: 17px; line-height: 1.55; color: rgba(212,215,226,.85); max-width: 44ch; }
.eyebrow--light { color: rgba(255,255,255,.7); }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .refwhy__grid { grid-template-columns: repeat(2, 1fr); }
  .ref-grid__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .refhero__top { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .refhero__media { aspect-ratio: 16 / 10; }
  .refhero__title { font-size: clamp(48px, 12vw, 72px); }
}
@media (max-width: 620px) {
  .refwhy__grid { grid-template-columns: 1fr; }
  .ref-grid__cards { grid-template-columns: 1fr; }
  .refcta__inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .refcta__inner .btn { width: 100%; }
  .refcta__deco { display: none; } /* karta přes celou šířku → ikony by se schovaly/tlačily */
}

/* =========================================================
   PODSTRÁNKY — světlý nav (modré položky, červený accent)
   Homepage (.home) má tmavý hero → ponechán beze změny.
   Platí pro všechny šablony mimo front-page.
   ========================================================= */
/* Horní lišta (rychlý kontakt) — tmavý text místo bílého */
body:not(.home) .nav__top a {
  color: var(--ink);
  text-shadow: none;
}
body:not(.home) .nav__top a strong { color: var(--navy); }

/* Bar — stejná logika jako homepage: nahoře transparentní (bez pillu),
   po scrollu plynule přejde do světlého pillu. Liší se jen barvou
   (bílé pozadí + modrý text), animace a přechody jsou identické. */
body:not(.home) header.nav.scrolled .nav__bar {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: transparent;
  box-shadow: 0 16px 48px rgba(44, 90, 166, .12);
}

/* Položky — tmavě modré, hover červený */
body:not(.home) .nav__link { color: var(--navy); }
body:not(.home) .nav__link:hover { color: var(--red); }
body:not(.home) .nav__item.open .nav__link {
  background: var(--blue-50);
  color: var(--navy);
}

/* E-shop ghost tlačítko — modrý outline místo liquid-glass */
body:not(.home) .nav__bar .btn--ghost {
  color: var(--navy);
  background: transparent;
  border: 1.5px solid var(--navy);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:not(.home) .nav__bar .btn--ghost:hover {
  color: var(--red);
  border-color: var(--red);
  box-shadow: none;
}

/* Burger (mobil) — modré čáry na světlém baru */
body:not(.home) .burger {
  background: var(--blue-50);
  border-color: var(--blue-100);
}
body:not(.home) .burger:hover { background: var(--blue-100); }
body:not(.home) .burger span,
body:not(.home) .burger span::before,
body:not(.home) .burger span::after {
  background: var(--navy);
}
