:root {
  --nav-height: 64px;
  --nav-max-width: 1100px;
}

/* ================= NAVBAR ================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  height: var(--nav-height);
  min-height: var(--nav-height);

  background: var(--dark);
  display: flex;
  justify-content: center;

  overflow: visible;
}

.nav-container {
  height: 100%;
  width: 100%;
  max-width: var(--nav-max-width);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 16px;
}

/* ================= LOGO ================= */

.logo-title {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.logo-title h1 {
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* ================= MENU ================= */

.menu {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu a {
  height: 100%;
  display: flex;
  align-items: center;

  padding: 0 14px;
  border-radius: 6px;     /* ✅ hranatý, jemně moderní */

  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;

  color: var(--bg);
  transition: background .15s ease, color .15s ease;
}


.menu a:hover {
  background: var(--primary);
  color: var(--dark);
}

.menu a.active {
  color: var(--primary);
  position: relative;
}

.menu a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -6px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ================= MOBILE NAV ================= */

.menu-toggle {
  display: none;
}

@media (max-width: 767px) {

  /* === HAMBURGER === */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10001;
  }

  .menu-toggle span {
    width: 26px;
    height: 3px;
    background: #fff; /* ⬅️ DŮLEŽITÉ */
    border-radius: 2px;
  }

  /* === MENU PANEL === */
  .menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;

    flex-direction: column;
    background: #111; /* tmavé pozadí */
    display: none;

    z-index: 10000;
  }

  .menu.active {
    display: flex;
  }

  /* === ODKAZY === */
  .menu a {
    padding: 14px 20px;
    height: auto;

    color: #fff;              /* ⬅️ OPRAVA NEČITELNOSTI */
    font-weight: 600;
    text-decoration: none;
  }

  .menu a:hover {
    background: rgba(255,255,255,0.08);
  }
}


/* ================= MAIN ================= */

main.container {
  padding: 32px 16px;
}

@media (min-width: 768px) {
  main.container {
    max-width: var(--nav-max-width);
    margin: 0 auto;
  }
}

/* ================= FOOTER ================= */

.footer {
  margin-top: auto;
  background: var(--dark);
  color: var(--primary);
  text-align: center;
  padding: 24px 16px;
  font-size: 0.85rem;
}

.footer p {
  margin: 0;
}
