:root {
  --bg: #07111f;
  --bg-soft: #0e1a2b;
  --panel: #111f33;
  --panel-2: #152842;
  --text: #e8f0fa;
  --muted: #a8b6c8;
  --line: rgba(255,255,255,.12);
  --accent: #36d1dc;
  --accent-2: #5b86e5;
  --warn: #ffcc66;
  --ok: #79e2a7;
  --shadow: 0 20px 50px rgba(0,0,0,.25);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(54,209,220,.18), transparent 35%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: #8cdfff; }
a:hover { color: #ffffff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(7,17,31,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand-mark { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #03101f; padding: 7px 9px; border-radius: 10px; letter-spacing: .04em; }
.brand-text { color: var(--muted); }
.top-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top-nav a:hover { color: var(--text); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 10px; padding: 8px 10px; }

.section { padding: 76px clamp(18px, 5vw, 72px); max-width: 1360px; margin: 0 auto; }
.alt-bg { max-width: none; background: rgba(255,255,255,.035); }
.alt-bg > * { max-width: 1220px; margin-left: auto; margin-right: auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 36px; align-items: center; min-height: 78vh; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.05; margin: 0 0 24px; letter-spacing: -0.045em; }
.lead { font-size: clamp(1.08rem, 2vw, 1.35rem); color: var(--muted); max-width: 850px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; margin-bottom: 12px; }
.hero-panel, .stage-detail, .integration-card, .solution-card, .note-box {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel { padding: 28px; }
.hero-panel h2 { margin-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04101d; }
.button.secondary { border: 1px solid var(--line); color: var(--text); }
.section-heading { max-width: 860px; margin-bottom: 30px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; margin: 0 0 14px; letter-spacing: -.03em; }
.section-heading p { color: var(--muted); }
.timeline { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; margin: 28px 0; }
.stage { text-align: left; min-height: 104px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.stage:hover { transform: translateY(-3px); border-color: rgba(54,209,220,.55); }
.stage.active { background: linear-gradient(135deg, rgba(54,209,220,.28), rgba(91,134,229,.24)); border-color: rgba(54,209,220,.75); }
.stage span { display: block; color: var(--accent); font-weight: 800; margin-bottom: 8px; }
.stage.loop span { color: var(--ok); }
.stage-detail { padding: clamp(22px, 4vw, 36px); }
.stage-detail h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-top: 0; }
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.stage-grid div { background: rgba(0,0,0,.15); border: 1px solid var(--line); padding: 18px; border-radius: 16px; }
.stage-grid h4 { margin: 0 0 8px; color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.filter.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04101d; border-color: transparent; font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.solution-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.solution-card h3 { margin: 0; font-size: 1.25rem; }
.solution-card p { margin: 0; color: var(--muted); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.badge { font-size: .78rem; color: #dff7ff; border: 1px solid var(--line); padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.05); }
.integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.integration-card { padding: 22px; }
.integration-card h3 { margin-top: 0; color: var(--accent); }
.integration-card p { color: var(--muted); margin-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0,0,0,.18); }
table { width: 100%; border-collapse: collapse; min-width: 920px; }
th, td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
th { color: var(--accent); background: rgba(255,255,255,.06); }
td { color: var(--muted); }
td strong { color: var(--text); }
.note-box { padding: 30px; }
.note-box p, .note-box li { color: var(--muted); }
.split-list ul { margin-bottom: 0; }
.source-list { columns: 2; gap: 38px; }
.source-list li { break-inside: avoid; margin-bottom: 8px; }
.site-footer { padding: 26px clamp(18px, 5vw, 72px); border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.small { font-size: .88rem; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 46px; }
  .timeline, .cards, .integration-grid, .stage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .top-nav { display: none; width: 100%; flex-direction: column; }
  .top-nav.open { display: flex; }
  .site-header { flex-wrap: wrap; }
  .timeline, .cards, .integration-grid, .stage-grid { grid-template-columns: 1fr; }
  .source-list { columns: 1; }
}
.hero-image-panel{
    margin-top: 18px;
    display:flex;
    justify-content:flex-start;
    align-items:center;
}

.hero-map-image{
    width:120%;
    max-width:1100px;

    border-radius:24px;

    border:1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.45),
        0 0 40px rgba(54,209,220,0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;

    background:#09111d;
}

.hero-map-image:hover{
    transform:translateY(-4px) scale(1.01);

    box-shadow:
        0 35px 80px rgba(0,0,0,0.55),
        0 0 60px rgba(54,209,220,0.14);
}
/* ===================================== */
/* 🧊 Výchozí styl banneru */
#friends-box {
  margin: 1.5rem auto;
  padding: 1rem;
  text-align: center;
  max-width: 300px;
}

/* 🖥 Styl pro desktop – plovoucí box */
@media (min-width: 769px) {
  #friends-box.friends-floating {
    position: fixed;
    top: 30%;
    left: 15px;
    width: 220px;
    background-color: rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.25); 
    border-radius: 10px;
    padding: 15px;
    color: white;
    z-index: 1000;
    transition: all 1.3s ease;
    backdrop-filter: blur(3px);
  }

  #friends-box.friends-floating h4 {
    font-size: 1.1em;
    margin-bottom: 0.6em;
  }

  .friend-banner {
    width: 40%;
    margin-bottom: -1.5em;
    border-radius: 20px;
  }

  /* 🔻 Stav SBALENÝ */
  #friends-box.collapsed {
    width: 40px !important;
    max-width: 40px !important;
    padding: 5px !important;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0.5;
  }

  /* 🔁 Tlačítko ve sbaleném stavu */
  #friends-box.collapsed #toggle-button {
    right: 5px;
    transform: rotate(180deg);
  }
}

/* 🎯 Tlačítko na sbalení */
#toggle-button {
  position: absolute;
  top: 10px;
  right: -15px;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}
/* Styly pro logo v hlavičce */
.site-logo-container {
    margin-left: 20px;
    margin-right: auto;
	
}

.header-logo {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease-out;
    cursor: pointer;
    align-items: center;
}

.header-logo:hover {
    transform: translateY(-5px);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--color-text-light);
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-accent);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease-in-out;
}

.main-nav a:hover::after {
    width: 100%;
}
