/* ════════════════════════════════════════════════════════════
   MCC ENERGO — design system
   Skupinová identita: tmavý podklad dle MCC Identity,
   akcent #E5447E z loga ENERGO.
   Display: Archivo · Data/labels: IBM Plex Mono
   ════════════════════════════════════════════════════════════ */

:root {
  --ink-0: #0C0F0E;      /* stránka */
  --ink-1: #111514;      /* pásy    */
  --ink-2: #161C1A;      /* karty   */
  --line: #232C29;       /* hairline */
  --paper: #F2F4F3;      /* text    */
  --mute: #94A09B;       /* sekundární text */
  --energo: #E5447E;     /* akcent  */
  --energo-soft: rgba(229, 68, 126, 0.12);

  --font-d: "Archivo", system-ui, sans-serif;
  --font-m: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --r: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  background: var(--ink-0);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }

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

:focus-visible { outline: 2px solid var(--energo); outline-offset: 3px; border-radius: 2px; }

/* ── typografie ─────────────────────────────── */

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

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.25; }

.accent { color: var(--energo); }

.eyebrow {
  font-family: var(--font-m);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--energo);
  margin-bottom: 1.1rem;
}

.lead {
  max-width: 620px;
  font-size: 1.12rem;
  color: var(--mute);
  margin-top: 1.6rem;
}

/* ── tlačítka ───────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.78em 1.7em;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-solid { background: var(--energo); color: #fff; }
.btn-solid:hover { background: #ef5a90; }

.btn-outline { border-color: rgba(242, 244, 243, 0.35); color: var(--paper); }
.btn-outline:hover { border-color: var(--energo); color: var(--energo); }

.btn-lg { padding: 0.95em 2em; font-size: 1.02rem; }

/* ── header ─────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 15, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  min-height: 78px;
}

.brand { flex-shrink: 0; display: flex; }
.brand img { height: 19px; width: auto; }

.site-nav {
  display: flex;
  gap: 2rem;
  margin-inline: auto;
}

.site-nav a {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--paper);
  opacity: 0.85;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.site-nav a:hover { opacity: 1; color: var(--energo); }

.header-tools { display: flex; align-items: center; gap: 1.4rem; }

.lang {
  display: flex;
  gap: 0.15rem;
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.lang-item { padding: 0.35em 0.5em; border-radius: 4px; color: var(--mute); transition: color 0.15s ease; }
.lang-item.is-active { color: var(--paper); background: var(--ink-2); }
a.lang-item:hover { color: var(--energo); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ── hero ───────────────────────────────────── */

.hero { padding: clamp(4rem, 9vh, 7rem) 0 4.5rem; position: relative; overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52rem 30rem at 82% -10%, var(--energo-soft), transparent 65%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

/* schéma toku energie */

.flow { margin-top: clamp(3.5rem, 8vh, 5.5rem); }

.flow-svg { width: 100%; height: auto; display: block; color: var(--paper); }

.flow-line {
  stroke: var(--line);
  stroke-width: 2;
}

.flow-pulse {
  stroke: var(--energo);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 14 92;
  animation: flow 3.2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(229, 68, 126, 0.55));
}

@keyframes flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -106; }
}

.node .pict {
  fill: none;
  stroke: var(--paper);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node .pict .thin, .node .thin { stroke-width: 1.4; }

.node .rays path { stroke: var(--energo); }

.n-label {
  font-family: var(--font-m);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--mute);
  text-anchor: middle;
  stroke: none;
}

.flow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.55em 0.95em;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--ink-1);
}

.chip-k { color: var(--mute); text-transform: uppercase; }
.chip-v { color: var(--paper); font-weight: 500; }

.chip-status .chip-v { color: var(--energo); text-transform: uppercase; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--energo);
  box-shadow: 0 0 8px var(--energo);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── stats ──────────────────────────────────── */

.stats { border-block: 1px solid var(--line); background: var(--ink-1); }

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

.stat {
  padding: 2.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat + .stat { border-left: 1px solid var(--line); }

.stat-n {
  font-family: var(--font-d);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1;
  color: var(--energo);
  white-space: nowrap;
}

.stat-k {
  font-family: var(--font-m);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
}

/* ── sekce ──────────────────────────────────── */

.section { padding: clamp(5rem, 11vh, 8.5rem) 0; }

.section-alt { background: var(--ink-1); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 3.5rem; }

.section-lead { color: var(--mute); margin-top: 1.1rem; font-size: 1.06rem; }

/* kotvy řešení */

.anchor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 4.5rem;
}

.anchor-row a {
  font-family: var(--font-m);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute);
  padding: 0.6em 1.1em;
  border: 1px solid var(--line);
  border-radius: 99px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.anchor-row a:hover { color: var(--energo); border-color: var(--energo); }

/* řešení — řádky */

.solution {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: 2.4rem;
  scroll-margin-top: 100px;
}

.solution + .solution { border-top: 1px solid var(--line); }

.solution:nth-child(even of .solution) .solution-text { order: 2; }
.solution:nth-child(even of .solution) .solution-media { order: 1; }

.solution-text h3 { margin-bottom: 0.9rem; }
.solution-text p { color: var(--mute); }

.feature-list {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.55rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.98rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  background: var(--energo);
}

.solution-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.media-caption {
  font-family: var(--font-m);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 0.8rem;
}

/* fáze dodávky BESS */

.bess-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: -1.2rem;
  padding-bottom: 3.2rem;
}

.bess-stage {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.4rem;
}

.bess-stage h4 {
  font-family: var(--font-m);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--energo);
  margin-bottom: 0.6rem;
}

.bess-stage p { font-size: 0.86rem; color: var(--mute); line-height: 1.55; }

/* ── co zajišťujeme ─────────────────────────── */

.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.cap {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.7rem 1.5rem;
}

.cap h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.cap p { font-size: 0.88rem; color: var(--mute); line-height: 1.55; }

.caps-note {
  margin-top: 2.2rem;
  font-family: var(--font-m);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.caps-note strong { color: var(--paper); font-weight: 500; }

/* ── postup ─────────────────────────────────── */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}

.step {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.step-n {
  font-family: var(--font-m);
  font-size: 0.8rem;
  color: var(--energo);
  letter-spacing: 0.1em;
}

.step h3 { font-size: 1.02rem; }
.step p { font-size: 0.88rem; color: var(--mute); line-height: 1.55; }

/* ── reference ──────────────────────────────── */

.case {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.8rem, 4vw, 3rem);
}

.case-flagship {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: 1.4rem;
  border-color: rgba(229, 68, 126, 0.35);
  background:
    radial-gradient(40rem 26rem at 110% -20%, var(--energo-soft), transparent 60%),
    var(--ink-2);
}

.case-photo .case-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.case-tag {
  font-family: var(--font-m);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--energo);
  margin-bottom: 1rem;
}

.case h3 { font-size: 1.5rem; margin-bottom: 1rem; }

.case-desc { color: var(--mute); font-size: 0.98rem; }

.case-meta {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.6rem;
}

.case-meta dt {
  font-family: var(--font-m);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
  margin-bottom: 0.2rem;
}

.case-meta dd { font-size: 0.94rem; font-weight: 500; }

/* referenční karty s fotografiemi */

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.ref-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ref-card:hover { border-color: rgba(229, 68, 126, 0.5); transform: translateY(-3px); }

.ref-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.ref-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ref-card:hover .ref-img img { transform: scale(1.04); }

.ref-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: 0.45rem; }

.ref-type {
  font-family: var(--font-m);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--energo);
}

.ref-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.ref-title h3 { font-size: 1.15rem; }

.ref-n {
  font-family: var(--font-d);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.15rem;
  color: var(--energo);
  white-space: nowrap;
}

.ref-n small { font-size: 0.72em; font-weight: 600; }

.ref-loc {
  font-family: var(--font-m);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
}

.ref-desc { font-size: 0.88rem; color: var(--mute); line-height: 1.55; }

/* dashboard vizuál */

.dash {
  background: var(--ink-0);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.4rem;
  font-family: var(--font-m);
}

.dash-head {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.dash-time { margin-left: auto; color: var(--mute); }

.dash-rows { display: grid; gap: 1.1rem; padding-top: 1.2rem; }

.dash-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  font-size: 0.74rem;
}

.dash-row span { color: var(--mute); text-transform: uppercase; letter-spacing: 0.1em; }
.dash-row b { font-weight: 500; color: var(--paper); }

.dash-row i {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.dash-row i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w, 50%);
  background: var(--energo);
  border-radius: 2px;
  transition: width 0.8s ease;
}

/* ── skupina ────────────────────────────────── */

.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.group-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem 1.8rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.group-card:hover { border-color: var(--energo); transform: translateY(-3px); }

.group-card.is-current { border-color: rgba(229, 68, 126, 0.4); }

.group-logo {
  display: flex;
  align-items: flex-end;
  height: 56px;
  margin-bottom: 0.8rem;
}

.group-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: left bottom;
}

.group-card h3 { font-size: 1.1rem; }
.group-card p { font-size: 0.9rem; color: var(--mute); flex-grow: 1; }

.group-link {
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--energo);
}

/* ── CTA box ────────────────────────────────── */

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: center;
  background:
    radial-gradient(36rem 24rem at -10% 120%, var(--energo-soft), transparent 60%),
    var(--ink-2);
  border: 1px solid rgba(229, 68, 126, 0.4);
  border-radius: 14px;
  padding: clamp(2.2rem, 5vw, 3.8rem);
}

.cta-text p:not(.eyebrow) { color: var(--mute); margin-top: 0.9rem; max-width: 460px; }

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.cta-actions .btn { text-align: center; }

/* ── footer ─────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-1);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand img { height: 56px; width: auto; margin-bottom: 1.2rem; }

.footer-brand p { font-size: 0.88rem; color: var(--mute); }

.footer-col h4 {
  font-family: var(--font-m);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--energo);
  margin-bottom: 1rem;
}

.footer-col, .footer-col address {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--mute);
  line-height: 1.8;
}

.footer-col a { color: var(--paper); opacity: 0.85; }
.footer-col a:hover { color: var(--energo); opacity: 1; }

.footer-links { display: flex; flex-direction: column; gap: 0.2rem; }

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-m);
  font-size: 0.8rem;
  margin-top: 1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social:hover { border-color: var(--energo); color: var(--energo); }

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}

/* ── reveal ─────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

/* ── responsive ─────────────────────────────── */

@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .group-grid { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .bess-stages { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-1);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 28px 1.2rem;
    display: none;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }

  .nav-toggle { display: flex; }

  .header-tools .btn { display: none; }

  .solution { grid-template-columns: 1fr; gap: 1.8rem; }

  .solution:nth-child(even of .solution) .solution-text { order: 1; }
  .solution:nth-child(even of .solution) .solution-media { order: 2; }

  .case-flagship { grid-template-columns: 1fr; }

  .ref-grid { grid-template-columns: 1fr; }
  .caps-grid { grid-template-columns: 1fr; }
  .bess-stages { grid-template-columns: 1fr; }

  .cta-box { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); font-stretch: 100%; overflow-wrap: anywhere; }

  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }

  .case-meta { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bar { flex-direction: column; align-items: flex-start; }

  .lang { display: none; }
}

/* ── reduced motion ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal { opacity: 1; transform: none; transition: none; }

  .flow-pulse, .dot { animation: none; }

  .btn:hover, a.group-card:hover { transform: none; }
}
