/* ============================================================
   Helion.cz — moderní redesign
   Struktura dle předlohy iwcf.org, vizuální jazyk inspirovaný
   současnými award-winning business weby (velká typografie,
   bento grid, grain, glow, mono mikro-popisky, marquee).
   ============================================================ */
:root {
  --navy: #262626;      /* tmava seda (manual) */
  --navy-deep: #1d1d1b; /* tiskova cerna */
  --blue: #ffed00;      /* zluta CMYK 0/0/100/0 */
  --cyan: #f7a600;      /* oranzova CMYK 0/40/100/0 */
  --amber: #ffed00;
  --orange: #e07800;    /* oranzova pro text na bilem */
  --white: #ffffff;
  --paper: #f6f7f9;
  --line: #e2e5ea;
  --ink: #1d1d1b;
  --muted: #646363;     /* tiskova seda */
  --display: "Poppins", sans-serif;   /* nadpisy jako na puvodnim webu */
  --body: "Open Sans", sans-serif;  /* text jako na puvodnim webu */
  --mono: "Open Sans", sans-serif; /* citelne i pro popisky */
  --h1: clamp(42px, 6.5vw, 84px);
  --h2: clamp(30px, 4vw, 50px);
  --h3: clamp(22px, 2.8vw, 34px);
  --radius: 18px;
  --radius-sm: 12px;
  --spacing: clamp(44px, 5.5vw, 80px);
  --container: 1440px;
  --tr: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px rgba(10, 13, 18, 0.16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--tr); }
ul { list-style: none; }
button { font-family: inherit; }
::selection { background: var(--blue); color: var(--ink); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 6px; border: 2px solid var(--paper); }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; }
h1 { font-size: var(--h1); line-height: 1.05; font-weight: 700; }
h2 { font-size: var(--h2); line-height: 1.1; font-weight: 700; }
h3 { font-size: var(--h3); line-height: 1.18; font-weight: 600; }
h4 { font-size: 21px; line-height: 1.25; font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.container--narrow { max-width: 860px; }
.center { text-align: center; margin-top: 28px; }
.mono { font-family: var(--mono); font-size: 0.85em; letter-spacing: 0.01em; }
.lead { font-size: clamp(17px, 1.8vw, 20px); max-width: 780px; margin: 0 auto 28px; text-align: center; color: var(--muted); }

/* kicker — číslovaný štítek sekce */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12.5px;
  color: var(--orange);
  margin-bottom: 12px;
}
.kicker .num {
  font-family: var(--mono);
  color: var(--muted);
  border-color: var(--line) !important;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 30px;
  letter-spacing: 0.05em;
}
.kicker.light { color: rgba(255, 255, 255, 0.85); }
.kicker.light .num { color: var(--amber); border-color: currentColor !important; }
.kicker .chip { letter-spacing: 0.03em; }

.grad {
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* grain + glow dekor */
.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; filter: blur(120px); opacity: 0.35; pointer-events: none; }
.glow--tr { top: -220px; right: -160px; background: radial-gradient(circle, #ffed00, transparent 65%); opacity: 0.22; }
.glow--bl { bottom: -260px; left: -180px; background: radial-gradient(circle, #f7a600, transparent 65%); opacity: 0.22; }

/* chips */
.chip {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
  background: var(--paper);
  color: var(--navy);
  border: 1px solid var(--line);
}
.chip--glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  backdrop-filter: blur(8px);
}

/* buttons */
.e-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 10px;
  background: var(--blue);
  color: var(--ink);
  font-weight: 700;
  font-size: 15.5px;
  padding: 15px 30px;
  border-radius: 50px;
  border: 1.5px solid var(--blue);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--tr);
}
.e-btn::after { content: "→"; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.e-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10, 13, 18, 0.28); }
.e-btn:hover::after { transform: translateX(5px); }
.e-btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.e-btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.e-btn--ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.e-btn--ghost-dark:hover { background: var(--navy); color: var(--white); }
.e-btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.e-btn--light:hover { background: var(--amber); border-color: var(--amber); color: var(--navy); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--orange);
}
.arrow-link::after { content: "→"; transition: transform 0.3s ease; }
.arrow-link:hover::after { transform: translateX(6px); }
.arrow-link--back::after { content: none; }
.arrow-link--back::before { content: "←"; transition: transform 0.3s ease; }
.arrow-link--back:hover::before { transform: translateX(-6px); }

/* progress bar */
.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 300;
}

/* ---------- topbar ---------- */
.topbar { background: var(--navy-deep); color: rgba(255, 255, 255, 0.8); font-size: 13px; position: relative; z-index: 110; }
.topbar__inner { display: flex; justify-content: space-between; gap: 20px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar__info, .topbar__right { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar a:hover { color: var(--cyan); }
.topbar__spot { color: #8fd14f; font-weight: 600; }
.topbar__spot:not(:empty)::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #8fd14f;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- header ---------- */
.e-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
body.scrolled .e-header { box-shadow: 0 10px 40px rgba(10, 13, 18, 0.12); }
.e-header__inner { display: flex; align-items: center; gap: 30px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 50px; width: auto; }
.primary-nav { flex: 1; }
.primary-nav > ul { display: flex; gap: 2px; justify-content: center; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: block;
  padding: 10px 13px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 0;
  white-space: nowrap;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.is-active > a { color: var(--navy); box-shadow: inset 0 -3px 0 var(--blue); }
.primary-nav > ul > li.is-active > a { background: none; }
.primary-nav .sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--tr);
  z-index: 50;
}
.primary-nav li:hover > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 15px; }
.primary-nav .sub a:hover { background: var(--paper); color: var(--navy); transform: translateX(4px); }
.e-header__cta { display: flex; align-items: center; gap: 12px; }
.phone-link { display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; color: var(--muted); }
.phone-link strong { color: var(--navy); white-space: nowrap; font-size: 15px; }
.phone-link:hover strong { color: var(--orange); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 2.5px; background: var(--navy); margin: 5.5px 0; border-radius: 2px; transition: var(--tr); }

/* ---------- hero ---------- */
.hp-header-banner {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hp-header-banner__video, .hp-header-banner__video video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hp-header-banner__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 90% at 15% 30%, rgba(10, 13, 18, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10, 13, 18, 0.62) 0%, rgba(10, 13, 18, 0.55) 55%, rgba(10, 13, 18, 0.88) 100%);
}
.hp-header-banner__content { position: relative; z-index: 2; width: 100%; padding-top: 80px; padding-bottom: 40px; }
.hp-header-banner__title { max-width: 900px; margin-bottom: 36px; }
.hp-header-banner__title h1 .line { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hp-header-banner__title .lead { text-align: left; margin: 16px 0 0; font-size: clamp(17px, 1.6vw, 21px); max-width: 620px; color: rgba(255, 255, 255, 0.88); }
.hero-chips { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hp-header-banner__links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.hp-link-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 175px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  isolation: isolate;
  transition: var(--tr);
}
.hp-link-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.08), rgba(10, 13, 18, 0.85));
  z-index: -1;
  transition: var(--tr);
}
.hp-link-card::after {
  content: "→";
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  font-size: 16px;
  transition: var(--tr);
}
.hp-link-card:hover { transform: translateY(-8px); }
.hp-link-card:hover::before { background: linear-gradient(180deg, rgba(255, 237, 0, 0.32), rgba(10, 13, 18, 0.9)); }
.hp-link-card:hover::after { background: var(--blue); border-color: var(--blue); color: var(--ink); transform: rotate(-45deg); }
.hp-link-card h3 { font-size: 20px; }
.scroll-cue {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* vstupní animace hero */
@keyframes heroUp { from { opacity: 0; transform: translateY(42px); } to { opacity: 1; transform: none; } }
.hp-header-banner__title > * { opacity: 0; animation: heroUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hp-header-banner__title h1 { animation-delay: 0.12s; }
.hp-header-banner__title .lead { animation-delay: 0.26s; }
.hp-header-banner__title .hero-chips { animation-delay: 0.4s; }
.hp-link-card { opacity: 0; animation: heroUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hp-link-card:nth-child(1) { animation-delay: 0.5s; }
.hp-link-card:nth-child(2) { animation-delay: 0.58s; }
.hp-link-card:nth-child(3) { animation-delay: 0.66s; }
.hp-link-card:nth-child(4) { animation-delay: 0.74s; }
.hp-link-card:nth-child(5) { animation-delay: 0.82s; }

/* ---------- intro + bento ---------- */
.hp-intro-block { padding: var(--spacing) 0; position: relative; }
.hp-intro-block__top h2 { max-width: 940px; }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 56px;
}
.bento__tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}
.bento__tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.bento__tile--dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.bento__tile--dark .label { color: rgba(255, 255, 255, 0.7); }
.bento__tile--dark .bento__big {
  font-family: var(--display);
  font-size: clamp(30px, 2.6vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
}
.bento__tile--accent { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.bento__tile--accent .label { color: rgba(29, 29, 27, 0.65); }
.bento__big {
  font-family: var(--display);
  font-size: clamp(42px, 4.6vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.bento__tile .plus { font-size: 0.6em; vertical-align: super; }
.bento__tile .label { margin-top: 10px; color: var(--muted); font-size: 15px; }

.hp-intro-block__bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.hp-intro-block__imgs { position: relative; }
.img-main { overflow: hidden; border-radius: var(--radius); clip-path: inset(0 round var(--radius)); }
.img-main img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform 0.7s ease; }
.img-main:hover img { transform: scale(1.05); }
.img-small {
  position: absolute; right: 0; bottom: -20px;
  width: 44%;
  border: 6px solid var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.img-small img { aspect-ratio: 1; object-fit: cover; }
.img-badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--navy);
  color: var(--amber);
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(10, 13, 18, 0.35);
}
.hp-intro-block__text .text { margin-bottom: 12px; color: var(--muted); }
.hp-intro-block__text h3 { margin-bottom: 12px; }
.sig { margin: 16px 0 20px; padding-left: 18px; border-left: 3px solid var(--amber); }
.sig span { color: var(--muted); font-size: 14.5px; }

/* ---------- skills / carousel ---------- */
.hp-skills-block {
  position: relative;
  padding: var(--spacing) 0;
  background-size: cover;
  background-position: center;
  
  color: var(--white);
  overflow: hidden;
}
.hp-skills-block__scrim { position: absolute; inset: 0; background: rgba(10, 13, 18, 0.93); }
.hp-skills-block .container { position: relative; z-index: 2; }
.hp-skills-block__head { text-align: center; margin-bottom: 32px; }
.hp-skills-block__head .kicker { justify-content: center; }
.stack-carousel { max-width: 880px; margin: 0 auto; }
.stack-carousel .cards { position: relative; height: clamp(430px, 60vh, 520px); }
.stack-carousel .card {
  position: absolute; inset: 0;
  background: var(--white);
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  will-change: transform;
}
.stack-carousel .card .content { padding: 44px; display: flex; flex-direction: column; gap: 16px; justify-content: center; align-items: flex-start; }
.content__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.content__meta span {
  font-size: 12.5px; font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
  background: var(--paper);
  color: var(--navy);
  border: 1px solid var(--line);
}
.content__meta .level { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.stack-carousel .card h3 a:hover { color: var(--orange); }
.stack-carousel .card p { color: var(--muted); }
.stack-carousel .card .image { overflow: hidden; clip-path: inset(0 round 0 20px 20px 0); }
.stack-carousel .card .image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.stack-carousel .card:hover .image img { transform: scale(1.05); }
.stack-carousel .controls { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 64px; }
.ctrl {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: var(--tr);
}
.ctrl:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); transform: scale(1.08); }
.dots { display: flex; gap: 10px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.35); cursor: pointer; padding: 0; transition: var(--tr); }
.dots button.active { background: var(--amber); transform: scale(1.35); }

/* ---------- news cards ---------- */
.hp-posts-block { padding: var(--spacing) 0; }
.hp-posts-block__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-wrap { display: contents; }
.news-wrap.hidden { display: none; }
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--tr);
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.news-card__img { aspect-ratio: 16/9; overflow: hidden; background: var(--paper); clip-path: inset(0 round calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-card__img img { transform: scale(1.06); }
.news-card__ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.news-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.news-card h3 { font-size: 19px; font-family: var(--display); font-weight: 600; }
.news-card:hover h3 { color: var(--orange); }
.news-card p { color: var(--muted); font-size: 15px; flex: 1; }

/* ---------- members / reference strip ---------- */
.hp-members-block { background: var(--navy); color: var(--white); padding: var(--spacing) 0 0; overflow: hidden; position: relative; }
.hp-members-block__content { max-width: 720px; margin-bottom: 34px; position: relative; z-index: 2; }
.hp-members-block__content p { margin-bottom: 18px; color: rgba(255, 255, 255, 0.82); }
.hp-members-block h2 { margin-bottom: 12px; }
.marquee {
  overflow: hidden;
  padding-bottom: var(--spacing);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track:hover { animation-play-state: paused; }
.marquee__item { position: relative; border-radius: 14px; overflow: hidden; clip-path: inset(0 round 14px); }
.marquee__item img { height: 210px; width: 310px; object-fit: cover; transition: transform 0.5s ease; }
.marquee__item:hover img { transform: scale(1.06); }
.marquee__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 10px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(transparent, rgba(10, 13, 18, 0.85));
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- footer ---------- */
.e-footer { background: var(--navy-deep); color: var(--white); padding: var(--spacing) 0 0; position: relative; overflow: hidden; }
.e-footer__claim {
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative; z-index: 2;
}
.e-footer__claim h2 { max-width: 860px; }
.e-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 40px 0 24px; position: relative; z-index: 2; }
.e-footer__cols h4 { margin-bottom: 18px; color: var(--amber); font-family: var(--display); }
.e-footer__cols p, .e-footer__cols li { margin-bottom: 10px; color: rgba(255, 255, 255, 0.75); font-size: 15.5px; }
.e-footer__cols a:hover { color: var(--cyan); }
.e-footer__wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(90px, 17vw, 280px);
  line-height: 0.8;
  text-align: center;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  user-select: none;
  transform: translateY(10%);
}
.e-footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  position: relative; z-index: 2;
}
.e-footer__bottom a:hover { color: var(--cyan); }

/* ---------- subpages ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(40px, 5vw, 70px) 0;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { max-width: 1000px; }
.page-hero--article { padding: clamp(60px, 7vw, 90px) 0; }
.page-hero--article h1 { font-size: clamp(30px, 4vw, 52px); }
.page-hero .container { position: relative; z-index: 2; }

/* filters (reference, novinky, manuály) */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.filter {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: var(--tr);
}
.filter:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.filter.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* produkty */
.prod-list { padding: calc(var(--spacing) * 0.6) 0; }
.prod-item {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 5vw, 70px);
  align-items: center;
  padding: clamp(30px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}
.prod-item:last-child { border-bottom: 0; }
.prod-item--rev .prod-item__text { order: 2; }
.prod-item h2 { margin-bottom: 14px; }
.prod-item p { margin-bottom: 12px; color: var(--muted); }
.prod-item .e-btn { margin-top: 10px; }
.prod-item__img { overflow: hidden; border-radius: var(--radius); clip-path: inset(0 round var(--radius)); }
.prod-item__img img { width: 100%; object-fit: cover; max-height: 440px; transition: transform 0.6s ease; }
.prod-item__img:hover img { transform: scale(1.04); }

/* steps */
.steps { padding: var(--spacing) 0; }
.steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: var(--tr);
  overflow: hidden;
}
.step:hover { transform: translateY(-6px); background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.step:hover p { color: rgba(255, 255, 255, 0.75); }
.step:hover .step__num { color: var(--amber); }
.step__num { font-size: 15px; color: var(--orange); display: block; margin-bottom: 14px; font-weight: 500; }
.step h4 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* reference grid
   pozn.: clip-path na obalech fotek = antialiasovane rohy i pri GPU kompozici (zoom on hover); samotne overflow:hidden dela zubate rohy */
.ref-grid-section { padding: var(--spacing) 0; }
.ref-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ref-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: var(--tr);
  cursor: zoom-in;
}
.ref-card.hidden { display: none; }
.ref-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.ref-card .imgbox { overflow: hidden; clip-path: inset(0 round calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0); }
.ref-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform 0.6s ease; }
.ref-card:hover img { transform: scale(1.08); }
.ref-card figcaption { padding: 16px 20px; }
.ref-card h4 { font-size: 17px; }
.ref-card figcaption p { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 400;
  background: rgba(8, 10, 14, 0.92);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  padding: 40px;
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox p { color: rgba(255, 255, 255, 0.8); }
.lightbox__close {
  position: absolute; top: 24px; right: 30px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  transition: var(--tr);
}
.lightbox__close:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); transform: rotate(90deg); }

/* faq */
.faq { padding: var(--spacing) 0; }
.accordion__item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; background: var(--white); transition: var(--tr); }
.accordion__btn {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: none; border: 0;
  padding: 24px 28px;
  font: 700 18px var(--body);
  text-align: left;
  cursor: pointer;
}
.accordion__icon { font-size: 26px; color: var(--orange); transition: var(--tr); flex-shrink: 0; }
.accordion__item.open .accordion__icon { transform: rotate(45deg); color: var(--amber); }
.accordion__content { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.accordion__content p { padding: 0 28px 26px; color: var(--muted); }
.accordion__item.open { border-color: var(--navy); box-shadow: var(--shadow); }

/* kontakt */
.contact { padding: var(--spacing) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; margin-bottom: 54px; }
.contact__info { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 42px; }
.contact__info h3 { margin-bottom: 22px; }
.contact__info p { margin-bottom: 16px; }
.contact__info a:hover { color: var(--orange); }
.contact__info .e-btn { margin-top: 12px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; border-radius: var(--radius); filter: grayscale(0.4); transition: var(--tr); }
.contact__map:hover iframe { filter: none; }
.team h2 { margin-bottom: 26px; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--tr);
}
.team__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.team__avatar {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 700; font-size: 24px;
  margin-bottom: 16px;
}
.team__card:hover .team__avatar { background: var(--blue); color: var(--ink); }
.team__card h4 { font-size: 18px; }
.team__card .role { color: var(--orange); font-size: 13.5px; font-weight: 700; margin: 6px 0 12px; }
.team__card p { font-size: 14px; margin-bottom: 4px; color: var(--muted); }
.team__card a:hover { color: var(--orange); }

/* poptavka */
.inquiry { padding: var(--spacing) 0; }
.inquiry__form { display: flex; flex-direction: column; gap: 20px; }
.inquiry__form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inquiry__form label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 14.5px; }
.inquiry__form input, .inquiry__form select, .inquiry__form textarea {
  font: 400 16.5px var(--body);
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--tr);
}
.inquiry__form input:focus, .inquiry__form select:focus, .inquiry__form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(255, 237, 0, 0.35);
}
.inquiry__form .e-btn { align-self: flex-start; }

/* novinky + články */
.news-section { padding: var(--spacing) 0; }
.article { padding: calc(var(--spacing) * 0.7) 0 var(--spacing); }
.article__hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; clip-path: inset(0 round var(--radius)); }
.article__hero-img img { width: 100%; max-height: 460px; object-fit: cover; }
.article__body { font-size: 17.5px; line-height: 1.75; }
.article__body h2, .article__body h3, .article__body h4 { margin: 1.6em 0 0.6em; }
.article__body h2 { font-size: clamp(24px, 3vw, 34px); }
.article__body p { margin-bottom: 1.1em; }
.article__body ul, .article__body ol { margin: 0 0 1.2em 1.3em; }
.article__body ul { list-style: disc; }
.article__body li { margin-bottom: 0.4em; }
.article__body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.article__body img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.article__body table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: 15px; }
.article__body td, .article__body th { border: 1px solid var(--line); padding: 10px 12px; }
.article__body blockquote { border-left: 3px solid var(--amber); padding-left: 18px; color: var(--muted); margin: 1.4em 0; }
.article__back { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.article__related { margin-top: 54px; }
.article__related h3 { margin-bottom: 20px; }

/* manuály */
.manuals { padding: var(--spacing) 0; }
.man-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.man-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: var(--tr);
}
.man-card.hidden { display: none; }
.man-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--navy); }
.man-card__icon {
  grid-row: span 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--orange);
  font-size: 18px;
  font-weight: 700;
  transition: var(--tr);
}
.man-card:hover .man-card__icon { background: var(--blue); color: var(--ink); }
.man-card__title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.man-card__cat { color: var(--muted); font-size: 11.5px; margin-top: 3px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hp-link-card, .hp-header-banner__title > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .phone-link { display: none; }
}
@media (max-width: 1200px) {
  .hp-header-banner__links { grid-template-columns: repeat(3, 1fr); }
  .ref-grid, .team__grid { grid-template-columns: repeat(3, 1fr); }
  .steps__grid { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .man-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .primary-nav {
    position: fixed; inset: 0;
    background: var(--navy-deep);
    padding: 110px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 90;
    overflow-y: auto;
  }
  body.nav-open .primary-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .primary-nav > ul { flex-direction: column; gap: 2px; }
  .primary-nav > ul > li > a { color: var(--white); font-size: 24px; padding: 12px 0; font-family: var(--display); }
  .primary-nav > ul > li.is-active > a { background: none; color: var(--cyan); }
  .primary-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 12px 18px; min-width: 0; }
  .primary-nav .sub a { color: rgba(255, 255, 255, 0.65); }
  .burger { display: block; z-index: 95; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: #fff; }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: #fff; }
  .e-header__cta .e-btn--ghost { display: none; }
  .hp-intro-block__bottom, .contact__grid { grid-template-columns: 1fr; }
  .news-grid, .news-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .prod-item { grid-template-columns: 1fr; gap: 30px; }
  .prod-item--rev .prod-item__text { order: 0; }
  .img-small { right: 0; }
  .stack-carousel .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .stack-carousel .card .image { clip-path: inset(0 round 0 0 20px 20px); }
  .stack-carousel .card .content { padding: 28px; }

  .e-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .hp-header-banner__links { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .ref-grid, .steps__grid, .team__grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .news-grid--3 { grid-template-columns: 1fr; }
  .man-grid { grid-template-columns: 1fr; }
  .inquiry__form .row2 { grid-template-columns: 1fr; }
  .topbar__right { display: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .ref-grid, .steps__grid, .team__grid, .hp-header-banner__links, .bento { grid-template-columns: 1fr; }
}

/* ---------- aplikace ---------- */
.apps { padding: var(--spacing) 0; }
.apps__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app-card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px;
  transition: var(--tr);
  overflow: hidden;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--navy); color: var(--white); border-color: var(--navy); }
.app-card:hover p { color: rgba(255, 255, 255, 0.75); }
.app-card:hover .arrow-link { color: var(--cyan); }
.app-card p { color: var(--muted); }
.num-badge {
  position: absolute; top: 22px; right: 26px;
  font-size: 13px;
  color: var(--orange);
  border: 1px solid currentColor;
  border-radius: 30px;
  padding: 3px 10px;
}
.app-card:hover .num-badge { color: var(--amber); }

/* ---------- spotovky ---------- */
.spot { padding: var(--spacing) 0; }
.spot__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.spot__stats .bento__big { font-size: clamp(30px, 3.2vw, 48px); }
.spot__chart-wrap { margin-bottom: 28px; }
.spot__chart-wrap h3 { margin-bottom: 18px; }
.spot__chart-wrap canvas { width: 100%; }
.spot-date { color: var(--muted); font-size: 14px; margin-left: 10px; }
.spot__src { color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- kalkulačky ---------- */
.calc { padding: var(--spacing) 0; }
.calc__check { flex-direction: row !important; align-items: center; gap: 10px !important; }
.calc__check input { width: 18px; height: 18px; }
.calc__result {
  margin-top: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 34px;
}
.calc__result h3 { margin-bottom: 16px; }
.calc__result p { line-height: 1.9; }
.calc__result .e-btn { margin-top: 20px; }
.calc__result canvas { width: 100%; margin-top: 14px; }

/* ---------- podpora ---------- */
.support { padding: var(--spacing) 0; }
.support__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.support__cards h3 { margin-bottom: 12px; }
.support__cards p { color: var(--muted); }
.support__table-wrap { overflow-x: auto; margin: 26px 0 10px; border-radius: var(--radius); border: 1px solid var(--line); }
.support__table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--white); }
.support__table th {
  background: var(--navy); color: var(--white);
  text-align: left; padding: 14px 18px;
  font-family: var(--display);
}
.support__table th:not(:first-child), .support__table td:not(:first-child) { text-align: center; width: 120px; }
.support__table td { padding: 11px 18px; border-top: 1px solid var(--line); }
.support__table td.yes { color: #37b96b; font-weight: 700; }
.support__table td.no { color: var(--muted); }
.support__table .price-row td { background: var(--paper); font-size: 16px; }
.support__table tr:hover td { background: #fdf8e7; }

@media (max-width: 900px) {
  .apps__grid, .support__cards { grid-template-columns: 1fr; }
  .spot__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .spot__stats { grid-template-columns: 1fr; }
}

/* ---------- HUD prvky (hodiny, souřadnice, indexy, dotted hover) ---------- */
.mono, .bento__big, .step__num { font-variant-numeric: tabular-nums; }

/* tečkovaný rámeček na hover — news, manuály, aplikace, reference, team */
.news-card, .man-card, .app-card, .ref-card, .team__card, .bento__tile { position: relative; }
.news-card::before, .man-card::before, .app-card::before, .ref-card::before, .team__card::before {
  content: "";
  position: absolute; inset: 0;
  border: 2px dotted transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 0.2s ease;
  z-index: 2;
}


/* čtyřmístný index v rohu karty */
.idx {
  position: absolute; top: 10px; left: 10px;
  z-index: 3;
  font-size: 11px;
  color: var(--white);
  background: rgba(10, 13, 18, 0.72);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
}

/* ---------- plynulé načtení ---------- */
.hp-header-banner__video .hero-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
#hero-video { opacity: 0; transition: opacity 1s ease; }
#hero-video.ready { opacity: 1; }
.marquee__track { will-change: transform; }
img { content-visibility: auto; }
.hp-header-banner__video img, .hp-header-banner__video video { content-visibility: visible; }
.prod-item__img img { aspect-ratio: 4/3; }

/* podpora banner */
.support__banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.support__banner img { width: 100%; object-fit: cover; }

/* plynula navigace mezi strankami */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.25s; }

/* ---------- vycentrovani fotek na objekt ---------- */
/* karusel: 0 rodinny dum, 3 smart garaz, 4 NZU dum, 5 stridace Victron */
.stack-carousel .card[data-i="0"] .image img { object-position: 50% 62%; }
.stack-carousel .card[data-i="3"] .image img { object-position: 50% 42%; }
.stack-carousel .card[data-i="4"] .image img { object-position: 50% 58%; }
.stack-carousel .card[data-i="5"] .image img { object-position: 50% 35%; }
/* hero karty: 2 servis (panely dole), 3 dotace (dum dole), 4 wallbox (vlevo), 5 e-shop (vlevo) */
.hp-link-card:nth-child(2) { background-position: 50% 72%; }
.hp-link-card:nth-child(3) { background-position: 50% 62%; }
.hp-link-card:nth-child(4) { background-position: 38% 50%; }
.hp-link-card:nth-child(5) { background-position: 32% 55%; }
/* intro male foto: plocha strecha - panely v dolni casti */
.img-small img { object-position: 50% 65%; }

/* servisní ceník */
.servis-cenik { margin: 20px 0 44px; }
.servis-cenik .bento__big { font-size: clamp(30px, 3vw, 44px); }
.servis-box { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); padding: 18px 20px; }
.servis-box__title { font-weight: 700; margin-bottom: 8px; }
.servis-box__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 8px; font-size: 15px; color: var(--muted); }
.servis-box__list strong { color: var(--ink); }
.servis-box__note { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.servis-box .calc__check { font-weight: 700; }
.servis-inline { background: var(--paper); border-left: 4px solid var(--blue); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.servis-cenik .bento__tile--dark .bento__big { color: var(--blue); }
